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 <IceUtil/PushDisableWarnings.h>
25 #include <Ice/ProxyF.h>
26 #include <Ice/ObjectF.h>
27 #include <Ice/ValueF.h>
28 #include <Ice/Exception.h>
29 #include <Ice/LocalObject.h>
30 #include <Ice/StreamHelpers.h>
31 #include <Ice/Comparable.h>
32 #include <Ice/Proxy.h>
33 #include <Ice/Object.h>
34 #include <Ice/GCObject.h>
35 #include <Ice/Value.h>
36 #include <Ice/Incoming.h>
37 #include <Ice/FactoryTableInit.h>
38 #include <IceUtil/ScopedArray.h>
39 #include <Ice/Optional.h>
40 #include <Ice/ExceptionHelpers.h>
42 #include <IceStorm/LLURecord.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 = ::std::map<::IceStorm::SubscriberRecordKey, ::IceStorm::SubscriberRecord>;
70 
71  struct AllData
72  {
75 
76  std::tuple<const ::IceStormElection::StringLogUpdateDict&, const ::IceStorm::SubscriberRecordDict&> ice_tuple() const
77  {
78  return std::tie(llus, subscribers);
79  }
80  };
81 
82  using Ice::operator<;
83  using Ice::operator<=;
84  using Ice::operator>;
85  using Ice::operator>=;
86  using Ice::operator==;
87  using Ice::operator!=;
88 
89 }
90 
91 namespace Ice
92 {
93 
94  template<>
95  struct StreamableTraits<::IceStorm::AllData>
96  {
97  static const StreamHelperCategory helper = StreamHelperCategoryStruct;
98  static const int minWireSize = 2;
99  static const bool fixedLength = false;
100  };
101 
102  template<typename S>
103  struct StreamReader<::IceStorm::AllData, S>
104  {
105  static void read(S* istr, ::IceStorm::AllData& v)
106  {
107  istr->readAll(v.llus, v.subscribers);
108  }
109  };
110 
111 }
112 
113 #else // C++98 mapping
114 
115 namespace IceProxy
116 {
117 
118 }
119 
120 namespace IceStormElection
121 {
122 
123  typedef ::std::map< ::std::string, ::IceStormElection::LogUpdate> StringLogUpdateDict;
124 
125 }
126 
127 namespace IceStorm
128 {
129 
130  typedef ::std::map< ::IceStorm::SubscriberRecordKey, ::IceStorm::SubscriberRecord> SubscriberRecordDict;
131 
132  struct AllData
133  {
136  };
137 
138 }
139 
140 namespace IceProxy
141 {
142 
143 }
144 
145 namespace Ice
146 {
147 
148  template<>
149  struct StreamableTraits< ::IceStorm::AllData>
150  {
151  static const StreamHelperCategory helper = StreamHelperCategoryStruct;
152  static const int minWireSize = 2;
153  static const bool fixedLength = false;
154  };
155 
156  template<typename S>
157  struct StreamWriter< ::IceStorm::AllData, S>
158  {
159  static void write(S* ostr, const ::IceStorm::AllData& v)
160  {
161  ostr->write(v.llus);
162  ostr->write(v.subscribers);
163  }
164  };
165 
166  template<typename S>
167  struct StreamReader< ::IceStorm::AllData, S>
168  {
169  static void read(S* istr, ::IceStorm::AllData& v)
170  {
171  istr->read(v.llus);
172  istr->read(v.subscribers);
173  }
174  };
175 
176 }
177 
178 #endif
179 
180 #include <IceUtil/PopDisableWarnings.h>
181 #endif
IceStorm
Definition: DBTypes.ice:22
IceProxy
Definition: DBTypes.h:115
IceStorm::SubscriberRecordDict
::std::map< ::IceStorm::SubscriberRecordKey, ::IceStorm::SubscriberRecord > SubscriberRecordDict
Definition: DBTypes.h:130
IceStorm::AllData::llus
::IceStormElection::StringLogUpdateDict llus
Definition: DBTypes.h:134
Ice::StreamReader< ::IceStorm::AllData, S >::read
static void read(S *istr, ::IceStorm::AllData &v)
Definition: DBTypes.h:169
IceStorm::AllData::subscribers
::IceStorm::SubscriberRecordDict subscribers
Definition: DBTypes.h:135
IceStormElection
Definition: DBTypes.ice:17
armarx::read
void read(auto &eigen, auto *table)
Definition: FTSensorCalibrationGuiWidgetController.cpp:462
IceStorm::AllData
Definition: DBTypes.ice:26
IceStorm::AllData::llus
IceStormElection::StringLogUpdateDict llus
Definition: DBTypes.ice:28
Ice
Definition: DBTypes.cpp:64
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:123
Ice::StreamWriter< ::IceStorm::AllData, S >::write
static void write(S *ostr, const ::IceStorm::AllData &v)
Definition: DBTypes.h:159
LLURecord.h
IceStorm::AllData::subscribers
IceStorm::SubscriberRecordDict subscribers
Definition: DBTypes.ice:29