DBTypes.h
Go to the documentation of this file.
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
9 //
10 // Ice version 3.7.0
11 //
12 // <auto-generated>
13 //
14 // Generated from file `DBTypes.ice'
15 //
16 // Warning: do not edit this file.
17 //
18 // </auto-generated>
19 //
20 
21 #ifndef __IceStorm_DBTypes_h__
22 #define __IceStorm_DBTypes_h__
23 
24 #include <Ice/Comparable.h>
25 #include <Ice/Exception.h>
26 #include <Ice/ExceptionHelpers.h>
27 #include <Ice/FactoryTableInit.h>
28 #include <Ice/GCObject.h>
29 #include <Ice/Incoming.h>
30 #include <Ice/LocalObject.h>
31 #include <Ice/Object.h>
32 #include <Ice/ObjectF.h>
33 #include <Ice/Optional.h>
34 #include <Ice/Proxy.h>
35 #include <Ice/ProxyF.h>
36 #include <Ice/StreamHelpers.h>
37 #include <Ice/Value.h>
38 #include <Ice/ValueF.h>
39 #include <IceStorm/LLURecord.h>
41 #include <IceUtil/PushDisableWarnings.h>
42 #include <IceUtil/ScopedArray.h>
43 #include <IceUtil/UndefSysMacros.h>
44 
45 #ifndef ICE_IGNORE_VERSION
46 #if ICE_INT_VERSION / 100 != 307
47 #error Ice version mismatch!
48 #endif
49 #if ICE_INT_VERSION % 100 > 50
50 #error Beta header file detected
51 #endif
52 #if ICE_INT_VERSION % 100 < 0
53 #error Ice patch level mismatch!
54 #endif
55 #endif
56 
57 #ifdef ICE_CPP11_MAPPING // C++11 mapping
58 
59 namespace IceStormElection
60 {
61 
62  using StringLogUpdateDict = ::std::map<::std::string, ::IceStormElection::LogUpdate>;
63 
64 }
65 
66 namespace IceStorm
67 {
68 
69  using SubscriberRecordDict =
70  ::std::map<::IceStorm::SubscriberRecordKey, ::IceStorm::SubscriberRecord>;
71 
72  struct AllData
73  {
76 
79  ice_tuple() const
80  {
81  return std::tie(llus, subscribers);
82  }
83  };
84 
85  using Ice::operator<;
86  using Ice::operator<=;
87  using Ice::operator>;
88  using Ice::operator>=;
89  using Ice::operator==;
90  using Ice::operator!=;
91 
92 } // namespace IceStorm
93 
94 namespace Ice
95 {
96 
97  template <>
98  struct StreamableTraits<::IceStorm::AllData>
99  {
100  static const StreamHelperCategory helper = StreamHelperCategoryStruct;
101  static const int minWireSize = 2;
102  static const bool fixedLength = false;
103  };
104 
105  template <typename S>
106  struct StreamReader<::IceStorm::AllData, S>
107  {
108  static void
109  read(S* istr, ::IceStorm::AllData& v)
110  {
111  istr->readAll(v.llus, v.subscribers);
112  }
113  };
114 
115 } // namespace Ice
116 
117 #else // C++98 mapping
118 
119 namespace IceProxy
120 {
121 
122 }
123 
124 namespace IceStormElection
125 {
126 
127  typedef ::std::map<::std::string, ::IceStormElection::LogUpdate> StringLogUpdateDict;
128 
129 }
130 
131 namespace IceStorm
132 {
133 
134  typedef ::std::map<::IceStorm::SubscriberRecordKey, ::IceStorm::SubscriberRecord>
136 
137  struct AllData
138  {
141  };
142 
143 } // namespace IceStorm
144 
145 namespace IceProxy
146 {
147 
148 }
149 
150 namespace Ice
151 {
152 
153  template <>
154  struct StreamableTraits<::IceStorm::AllData>
155  {
156  static const StreamHelperCategory helper = StreamHelperCategoryStruct;
157  static const int minWireSize = 2;
158  static const bool fixedLength = false;
159  };
160 
161  template <typename S>
162  struct StreamWriter<::IceStorm::AllData, S>
163  {
164  static void
165  write(S* ostr, const ::IceStorm::AllData& v)
166  {
167  ostr->write(v.llus);
168  ostr->write(v.subscribers);
169  }
170  };
171 
172  template <typename S>
173  struct StreamReader<::IceStorm::AllData, S>
174  {
175  static void
176  read(S* istr, ::IceStorm::AllData& v)
177  {
178  istr->read(v.llus);
179  istr->read(v.subscribers);
180  }
181  };
182 
183 } // namespace Ice
184 
185 #endif
186 
187 #include <IceUtil/PopDisableWarnings.h>
188 #endif
IceStorm
Definition: DBTypes.ice:22
IceProxy
Definition: DBTypes.h:119
Ice::StreamReader<::IceStorm::AllData, S >::read
static void read(S *istr, ::IceStorm::AllData &v)
Definition: DBTypes.h:176
IceStorm::SubscriberRecordDict
::std::map<::IceStorm::SubscriberRecordKey, ::IceStorm::SubscriberRecord > SubscriberRecordDict
Definition: DBTypes.h:135
IceStorm::AllData::llus
::IceStormElection::StringLogUpdateDict llus
Definition: DBTypes.h:139
IceStorm::AllData::subscribers
::IceStorm::SubscriberRecordDict subscribers
Definition: DBTypes.h:140
IceStormElection
Definition: DBTypes.ice:17
armarx::read
void read(auto &eigen, auto *table)
Definition: FTSensorCalibrationGuiWidgetController.cpp:503
IceStorm::AllData
Definition: DBTypes.ice:26
IceStorm::AllData::llus
IceStormElection::StringLogUpdateDict llus
Definition: DBTypes.ice:28
Ice::StreamWriter<::IceStorm::AllData, S >::write
static void write(S *ostr, const ::IceStorm::AllData &v)
Definition: DBTypes.h:165
Ice
Definition: DBTypes.cpp:63
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
SubscriberRecord.h
IceStormElection::StringLogUpdateDict
::std::map<::std::string, ::IceStormElection::LogUpdate > StringLogUpdateDict
Definition: DBTypes.h:127
LLURecord.h
IceStorm::AllData::subscribers
IceStorm::SubscriberRecordDict subscribers
Definition: DBTypes.ice:29