Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
SampleEvent.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0-alpha.0
4// <auto-generated>Generated from Slice file 'SampleEvent.ice'.</auto-generated>
5// clang-format off
6
7#ifndef DataStorm_SampleEvent_h_
8#define DataStorm_SampleEvent_h_
9
11#include <Ice/Ice.h>
12
13#ifndef ICE_DISABLE_VERSION
14# if ICE_INT_VERSION != 30850
15# error Ice version mismatch: an exact match is required for beta generated code
16# endif
17#endif
18
19#ifndef DATASTORM_API
20# if defined(DATASTORM_API_EXPORTS)
21# define DATASTORM_API ICE_DECLSPEC_EXPORT
22# else
23# define DATASTORM_API ICE_DECLSPEC_IMPORT
24# endif
25#endif
26
27// NOLINTBEGIN(modernize-concat-nested-namespaces)
28
29/// Data-centric, broker-less publish/subscribe framework. C++ only.
30namespace DataStorm
31{
32 /// Describes the operation used by a data writer to update a data element.
33 enum class SampleEvent : std::uint8_t
34 {
35 /// The data writer added the element.
37
38 /// The data writer updated the element.
40
41 /// The data writer partially updated the element.
43
44 /// The data writer removed the element.
46 };
47
48 /// Outputs the enumerator name or underlying value of a SampleEvent to a stream.
49 /// @param os The output stream.
50 /// @param value The value to output.
51 /// @return The output stream.
52 DATASTORM_API std::ostream& operator<<(std::ostream& os, SampleEvent value);
53
54 /// A sequence of sample events.
55 using SampleEventSeq = std::vector<SampleEvent>;
56}
57
58namespace Ice
59{
60 /// @cond INTERNAL
61 template<>
63 {
65 static constexpr int minValue = 0;
66 static constexpr int maxValue = 3;
67 static constexpr int minWireSize = 1;
68 static constexpr bool fixedLength = false;
69 };
70 /// @endcond
71}
72
73// NOLINTEND(modernize-concat-nested-namespaces)
74
76#endif
SampleEvent
Describes the operation used by a data writer to update a data element.
Definition SampleEvent.h:34
@ Update
The data writer updated the element.
Definition SampleEvent.h:39
@ Remove
The data writer removed the element.
Definition SampleEvent.h:45
@ Add
The data writer added the element.
Definition SampleEvent.h:36
@ PartialUpdate
The data writer partially updated the element.
Definition SampleEvent.h:42
std::vector< SampleEvent > SampleEventSeq
A sequence of sample events.
Definition SampleEvent.h:55
std::ostream & operator<<(std::ostream &os, const SampleEventSeq &types)
Converts the given sample type vector to a string and add it to the stream.
Definition DataStorm.h:89
Data-centric, broker-less publish/subscribe framework. C++ only.
Definition DataStorm.h:24
constexpr StreamHelperCategory StreamHelperCategoryEnum
Generated enum types.
int StreamHelperCategory
The stream helper category allows to select a StreamHelper specialization for a specific category of ...
The Ice RPC framework.
Definition SampleEvent.h:59
static constexpr bool fixedLength
Indicates if the type is always encoded on a fixed number of bytes.
static constexpr int minWireSize
The minimum number of bytes needed to marshal this type.
static constexpr StreamHelperCategory helper
The category trait, used for selecting the appropriate StreamHelper.
Provides traits for a type that can be marshaled or unmarshaled to/from a stream of bytes using the S...