Ice 3.7 C++11 API Reference
InterfaceByValue.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_INTERFACE_BY_VALUE_H
6 #define ICE_INTERFACE_BY_VALUE_H
7 
8 #include <Ice/Value.h>
9 #include <Ice/OutputStream.h>
10 #include <Ice/InputStream.h>
11 
12 #ifdef ICE_CPP11_MAPPING
13 
14 namespace Ice
15 {
16 
21 template<typename T>
22 class InterfaceByValue : public ValueHelper<InterfaceByValue<T>, Value>
23 {
24 public:
29  virtual std::string ice_id() const
30  {
31  return T::ice_staticId();
32  }
33 
38  static const std::string& ice_staticId()
39  {
40  return T::ice_staticId();
41  }
42 
47  std::tuple<> ice_tuple() const
48  {
49  return std::tie();
50  }
51 };
52 
53 }
54 
55 #endif
56 
57 #endif
Ice::InterfaceByValue::ice_staticId
static const std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Definition: InterfaceByValue.h:38
OutputStream.h
Ice::InterfaceByValue
Represents an instance of a Slice interface that was marshaled by value.
Definition: InterfaceByValue.h:23
Ice
Definition: BuiltinSequences.h:56
InputStream.h
Value.h
Ice::InterfaceByValue::ice_tuple
std::tuple ice_tuple() const
Returns an empty tuple.
Definition: InterfaceByValue.h:47
Ice::InterfaceByValue::ice_id
virtual std::string ice_id() const
Obtains the Slice type ID of this exception.
Definition: InterfaceByValue.h:29