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 <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/Identity.h>
30#include <Ice/Incoming.h>
31#include <Ice/LocalObject.h>
32#include <Ice/Object.h>
33#include <Ice/ObjectF.h>
34#include <Ice/Optional.h>
35#include <Ice/Proxy.h>
36#include <Ice/ProxyF.h>
37#include <Ice/StreamHelpers.h>
38#include <Ice/Value.h>
39#include <Ice/ValueF.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
59namespace 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>&,
69 const int&,
70 const ::std::shared_ptr<::IceStorm::TopicPrx>&>
71 ice_tuple() const
72 {
73 return std::tie(obj, cost, theTopic);
74 }
75 };
76
77 using Ice::operator<;
78 using Ice::operator<=;
79 using Ice::operator>;
80 using Ice::operator>=;
81 using Ice::operator==;
82 using Ice::operator!=;
83
84} // namespace IceStorm
85
86namespace Ice
87{
88
89 template <>
90 struct StreamableTraits<::IceStorm::LinkRecord>
91 {
92 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
93 static const int minWireSize = 8;
94 static const bool fixedLength = false;
95 };
96
97 template <typename S>
98 struct StreamReader<::IceStorm::LinkRecord, S>
99 {
100 static void
101 read(S* istr, ::IceStorm::LinkRecord& v)
102 {
103 istr->readAll(v.obj, v.cost, v.theTopic);
104 }
105 };
106
107} // namespace Ice
108
109#else // C++98 mapping
110
111namespace IceProxy
112{
113
114}
115
116namespace IceStorm
117{
118
125
126} // namespace IceStorm
127
128namespace IceProxy
129{
130
131}
132
133namespace Ice
134{
135
136 template <>
137 struct StreamableTraits<::IceStorm::LinkRecord>
138 {
139 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
140 static const int minWireSize = 8;
141 static const bool fixedLength = false;
142 };
143
144 template <typename S>
145 struct StreamWriter<::IceStorm::LinkRecord, S>
146 {
147 static void
148 write(S* ostr, const ::IceStorm::LinkRecord& v)
149 {
150 ostr->write(v.obj);
151 ostr->write(v.cost);
152 ostr->write(v.theTopic);
153 }
154 };
155
156 template <typename S>
157 struct StreamReader<::IceStorm::LinkRecord, S>
158 {
159 static void
161 {
162 istr->read(v.obj);
163 istr->read(v.cost);
164 istr->read(v.theTopic);
165 }
166 };
167
168} // namespace Ice
169
170#endif
171
172#include <IceUtil/PopDisableWarnings.h>
173#endif
::IceInternal::ProxyHandle<::IceProxy::IceStorm::Topic > TopicPrx
Definition IceManager.h:70
::IceInternal::ProxyHandle<::IceProxy::IceStorm::TopicLink > TopicLinkPrx
double v(double t, double v0, double a0, double j)
Definition CtrlUtil.h:39
void read(auto &eigen, auto *table)
Used to store persistent information for Topic federation.
Definition LinkRecord.h:120
::IceStorm::TopicPrx theTopic
Definition LinkRecord.h:123
::IceStorm::TopicLinkPrx obj
Definition LinkRecord.h:121
static void read(S *istr, ::IceStorm::LinkRecord &v)
Definition LinkRecord.h:160
static void write(S *ostr, const ::IceStorm::LinkRecord &v)
Definition LinkRecord.h:148
static const StreamHelperCategory helper
Definition LinkRecord.h:139