RCFProto
 All Classes Functions Typedefs
SerializationProtocol_SF.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2013, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 2.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_PROTOCOL_SF_HPP
20 #define INCLUDE_RCF_PROTOCOL_SF_HPP
21 
22 #include <RCF/SerializationProtocol_Base.hpp>
23 
24 #include <SF/IBinaryStream.hpp>
25 #include <SF/OBinaryStream.hpp>
26 #include <SF/string.hpp>
27 
28 namespace RCF {
29 
30  template<>
31  class Protocol< boost::mpl::int_<SfBinary> > : public ProtocolImpl_SF<SF::IBinaryStream, SF::OBinaryStream>
32  {
33  public:
34  static std::string getName()
35  {
36  return "SF binary serialization protocol";
37  }
38  };
39 
40 } // namespace RCF
41 
42 /*
43 #include <SF/ITextStream.hpp>
44 #include <SF/OTextStream.hpp>
45 
46 namespace RCF {
47 
48  template<>
49  class Protocol< boost::mpl::int_<SfText> > : public ProtocolImpl1<SF::ITextStream, SF::OTextStream>
50  {
51  public:
52  static std::string getName()
53  {
54  return "SF text protocol";
55  }
56  };
57 
58  inline void enableSfPointerTracking_2(SF::OTextStream &otextStream, bool enable)
59  {
60  enable ?
61  otextStream.enableContext():
62  otextStream.disableContext();
63  }
64 
65 } // namespace RCF
66 */
67 
68 #endif