LinkRecord.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 `LinkRecord.ice'
15 //
16 // Warning: do not edit this file.
17 //
18 // </auto-generated>
19 //
20 
21 #ifndef __IceStorm_LinkRecord_h__
22 #define __IceStorm_LinkRecord_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>
41 #include <Ice/Identity.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 IceStorm
60 {
61 
62  struct LinkRecord
63  {
64  ::std::shared_ptr<::IceStorm::TopicLinkPrx> obj;
65  int cost;
66  ::std::shared_ptr<::IceStorm::TopicPrx> theTopic;
67 
68  std::tuple<const ::std::shared_ptr<::IceStorm::TopicLinkPrx>&, const int&, const ::std::shared_ptr<::IceStorm::TopicPrx>&> ice_tuple() const
69  {
70  return std::tie(obj, cost, theTopic);
71  }
72  };
73 
74  using Ice::operator<;
75  using Ice::operator<=;
76  using Ice::operator>;
77  using Ice::operator>=;
78  using Ice::operator==;
79  using Ice::operator!=;
80 
81 }
82 
83 namespace Ice
84 {
85 
86  template<>
87  struct StreamableTraits<::IceStorm::LinkRecord>
88  {
89  static const StreamHelperCategory helper = StreamHelperCategoryStruct;
90  static const int minWireSize = 8;
91  static const bool fixedLength = false;
92  };
93 
94  template<typename S>
95  struct StreamReader<::IceStorm::LinkRecord, S>
96  {
97  static void read(S* istr, ::IceStorm::LinkRecord& v)
98  {
99  istr->readAll(v.obj, v.cost, v.theTopic);
100  }
101  };
102 
103 }
104 
105 #else // C++98 mapping
106 
107 namespace IceProxy
108 {
109 
110 }
111 
112 namespace IceStorm
113 {
114 
115  struct LinkRecord
116  {
120  };
121 
122 }
123 
124 namespace IceProxy
125 {
126 
127 }
128 
129 namespace Ice
130 {
131 
132  template<>
133  struct StreamableTraits< ::IceStorm::LinkRecord>
134  {
135  static const StreamHelperCategory helper = StreamHelperCategoryStruct;
136  static const int minWireSize = 8;
137  static const bool fixedLength = false;
138  };
139 
140  template<typename S>
141  struct StreamWriter< ::IceStorm::LinkRecord, S>
142  {
143  static void write(S* ostr, const ::IceStorm::LinkRecord& v)
144  {
145  ostr->write(v.obj);
146  ostr->write(v.cost);
147  ostr->write(v.theTopic);
148  }
149  };
150 
151  template<typename S>
152  struct StreamReader< ::IceStorm::LinkRecord, S>
153  {
154  static void read(S* istr, ::IceStorm::LinkRecord& v)
155  {
156  istr->read(v.obj);
157  istr->read(v.cost);
158  istr->read(v.theTopic);
159  }
160  };
161 
162 }
163 
164 #endif
165 
166 #include <IceUtil/PopDisableWarnings.h>
167 #endif
IceStorm
Definition: DBTypes.ice:22
IceProxy
Definition: DBTypes.h:115
IceStormInternal.h
Ice::StreamReader< ::IceStorm::LinkRecord, S >::read
static void read(S *istr, ::IceStorm::LinkRecord &v)
Definition: LinkRecord.h:154
IceStorm::LinkRecord::theTopic
::IceStorm::TopicPrx theTopic
Definition: LinkRecord.h:119
armarx::read
void read(auto &eigen, auto *table)
Definition: FTSensorCalibrationGuiWidgetController.cpp:462
IceStorm::LinkRecord::obj
::IceStorm::TopicLinkPrx obj
Definition: LinkRecord.h:117
Ice
Definition: DBTypes.cpp:64
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
IceInternal::ProxyHandle< ::IceProxy::IceStorm::TopicLink >
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:916
IceStorm::LinkRecord::cost
::Ice::Int cost
Definition: LinkRecord.h:118
IceStorm::LinkRecord
Used to store persistent information for Topic federation.
Definition: LinkRecord.h:115
Ice::StreamWriter< ::IceStorm::LinkRecord, S >::write
static void write(S *ostr, const ::IceStorm::LinkRecord &v)
Definition: LinkRecord.h:143