Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
SampleEvent.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.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 / 100 != 308
15# error Ice version mismatch!
16# endif
17# if ICE_INT_VERSION % 100 >= 50
18# error Beta header file detected
19# endif
20# if ICE_INT_VERSION % 100 < 0
21# error Ice patch level mismatch!
22# endif
23#endif
24
25#ifndef DATASTORM_API
26# if defined(DATASTORM_API_EXPORTS)
27# define DATASTORM_API ICE_DECLSPEC_EXPORT
28# else
29# define DATASTORM_API ICE_DECLSPEC_IMPORT
30# endif
31#endif
32
33// NOLINTBEGIN(modernize-concat-nested-namespaces)
34
35/// Data-centric, broker-less publish/subscribe framework. C++ only.
36namespace DataStorm
37{
38 /// Describes the operation used by a data writer to update a data element.
39 /// @remarks The Slice compiler generated this enum class from Slice enumeration `::DataStorm::SampleEvent`.
40 enum class SampleEvent : std::uint8_t
41 {
42 /// The data writer added the element.
44
45 /// The data writer updated the element.
47
48 /// The data writer partially updated the element.
50
51 /// The data writer removed the element.
53 };
54
55 /// Outputs the enumerator name or underlying value of a SampleEvent to a stream.
56 /// @param os The output stream.
57 /// @param value The value to output.
58 /// @return The output stream.
59 DATASTORM_API std::ostream& operator<<(std::ostream& os, SampleEvent value);
60
61 /// A sequence of sample events.
62 using SampleEventSeq = std::vector<SampleEvent>;
63}
64
65namespace Ice
66{
67 /// @cond INTERNAL
68 template<>
70 {
72 static constexpr int minValue = 0;
73 static constexpr int maxValue = 3;
74 static constexpr int minWireSize = 1;
75 static constexpr bool fixedLength = false;
76 };
77 /// @endcond
78}
79
80// NOLINTEND(modernize-concat-nested-namespaces)
81
83#endif
SampleEvent
Describes the operation used by a data writer to update a data element.
Definition SampleEvent.h:41
@ Update
The data writer updated the element.
Definition SampleEvent.h:46
@ Remove
The data writer removed the element.
Definition SampleEvent.h:52
@ Add
The data writer added the element.
Definition SampleEvent.h:43
@ PartialUpdate
The data writer partially updated the element.
Definition SampleEvent.h:49
std::vector< SampleEvent > SampleEventSeq
A sequence of sample events.
Definition SampleEvent.h:62
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:66
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...