LeviLamina
Loading...
Searching...
No Matches
Event.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/flat_map.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Json { class Value; }
11namespace Social::Events { class CompoundMeasurement; }
12namespace Social::Events { class Measurement; }
13namespace Social::Events { class Property; }
14// clang-format on
15
16namespace Social::Events {
17
18class Event {
19public:
20 // Event inner types define
21 enum class AggregationMode : int {
22 None = 0,
23 Aggregate = 1,
24 AggregateByUniqueProperties = 2,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 Event& operator=(Event const&);
48 Event();
49
50public:
51 // member functions
52 // NOLINTBEGIN
54
55 MCNAPI Event(
56 uint id,
57 ::std::string const& eventName,
58 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
59 int eventTags
60 );
61
63 ::std::string const& dynamicColumnName,
64 ::Social::Events::CompoundMeasurement&& compoundMeasurement
65 );
66
67 MCNAPI bool _areAllPropertiesEqual(::Social::Events::Event const& other) const;
68
69 MCNAPI bool _areUniquePropertiesEqual(::Social::Events::Event const& other) const;
70
71 MCNAPI void addMeasurement(::Social::Events::Measurement const& measurement);
72
73 MCNAPI void addProperty(::Social::Events::Property const& property, bool isUniqueProperty);
74
75 MCNAPI ::brstd::flat_map<
76 ::std::string,
77 ::std::vector<::Social::Events::Property>,
78 ::std::less<::std::string>,
79 ::std::vector<::std::string>,
80 ::std::vector<::std::vector<::Social::Events::Property>>>
82
83 MCNAPI ::std::optional<::std::reference_wrapper<::Social::Events::Property const>>
84 getProperty(::std::string const& propertyName) const;
85
86 MCNAPI_C ::Json::Value measurementsAsJsonValue() const;
87
88 MCNAPI_C ::Json::Value propertiesAsJsonValue() const;
89
91
93
94 MCNAPI ~Event();
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCNAPI void* $ctor(::Social::Events::Event const&);
101
102 MCNAPI void* $ctor(
103 uint id,
104 ::std::string const& eventName,
105 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
106 int eventTags
107 );
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCNAPI void $dtor();
114 // NOLINTEND
115};
116
117} // namespace Social::Events
Definition Value.h:16
Definition CompoundMeasurement.h:14
Definition Event.h:18
MCAPI Event(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, int eventTags)
MCAPI ::std::optional<::std::reference_wrapper<::Social::Events::Property const > > getProperty(::std::string const &propertyName) const
MCAPI void addMeasurement(::Social::Events::Measurement const &measurement)
MCAPI void _addOrUpdateCompoundMeasurement(::std::string const &dynamicColumnName, ::Social::Events::CompoundMeasurement &&compoundMeasurement)
MCAPI void * $ctor(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, int eventTags)
MCAPI void addProperty(::Social::Events::Property const &property, bool isUniqueProperty)
MCAPI Event(::Social::Events::Event const &)
MCAPI bool _areUniquePropertiesEqual(::Social::Events::Event const &other) const
MCAPI void updateMeasurements(::Social::Events::Event const &other)
MCAPI void updateCompoundMeasurements(::Social::Events::Event const &event)
MCAPI bool _areAllPropertiesEqual(::Social::Events::Event const &other) const
MCAPI ::brstd::flat_map< ::std::string, ::std::vector<::Social::Events::Property >, ::std::less<::std::string >, ::std::vector<::std::string >, ::std::vector<::std::vector<::Social::Events::Property > > > getCompoundsAsDynamicProperties() const
MCAPI void * $ctor(::Social::Events::Event const &)
Definition Measurement.h:12
Definition Property.h:7
Definition Alias.h:14