OpenSDN source code
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
contrail::sandesh::protocol::TProtocolDefaults Class Reference

#include <TVirtualProtocol.h>

Inheritance diagram for contrail::sandesh::protocol::TProtocolDefaults:
Collaboration diagram for contrail::sandesh::protocol::TProtocolDefaults:

Public Member Functions

int32_t readMessageBegin (std::string &name, TMessageType &messageType, int32_t &seqid)
 
int32_t readMessageEnd ()
 
int32_t readStructBegin (std::string &name)
 
int32_t readStructEnd ()
 
int32_t readSandeshBegin (std::string &name)
 
int32_t readSandeshEnd ()
 
int32_t readContainerElementBegin ()
 
int32_t readContainerElementEnd ()
 
int32_t readFieldBegin (std::string &name, TType &fieldType, int16_t &fieldId)
 
int32_t readFieldEnd ()
 
int32_t readMapBegin (TType &keyType, TType &valType, uint32_t &size)
 
int32_t readMapEnd ()
 
int32_t readListBegin (TType &elemType, uint32_t &size)
 
int32_t readListEnd ()
 
int32_t readSetBegin (TType &elemType, uint32_t &size)
 
int32_t readSetEnd ()
 
int32_t readBool (bool &value)
 
int32_t readBool (std::vector< bool >::reference value)
 
int32_t readByte (int8_t &byte)
 
int32_t readI16 (int16_t &i16)
 
int32_t readI32 (int32_t &i32)
 
int32_t readI64 (int64_t &i64)
 
int32_t readU16 (uint16_t &u16)
 
int32_t readU32 (uint32_t &u32)
 
int32_t readU64 (uint64_t &u64)
 
int32_t readIPV4 (uint32_t &ip4)
 
int32_t readIPADDR (boost::asio::ip::address &ipaddress)
 
int32_t readDouble (double &dub)
 
int32_t readString (std::string &str)
 
int32_t readBinary (std::string &str)
 
int32_t readXML (std::string &str)
 
int32_t readUUID (boost::uuids::uuid &uuid)
 
int32_t writeMessageBegin (const std::string &name, const TMessageType messageType, const int32_t seqid)
 
int32_t writeMessageEnd ()
 
int32_t writeStructBegin (const char *name)
 
int32_t writeStructEnd ()
 
int32_t writeSandeshBegin (const char *name)
 
int32_t writeSandeshEnd ()
 
int32_t writeContainerElementBegin ()
 
int32_t writeContainerElementEnd ()
 
int32_t writeFieldBegin (const char *name, const TType fieldType, const int16_t fieldId, const std::map< std::string, std::string > *const amap=NULL)
 
int32_t writeFieldEnd ()
 
int32_t writeFieldStop ()
 
int32_t writeMapBegin (const TType keyType, const TType valType, const uint32_t size)
 
int32_t writeMapEnd ()
 
int32_t writeListBegin (const TType elemType, const uint32_t size)
 
int32_t writeListEnd ()
 
int32_t writeSetBegin (const TType elemType, const uint32_t size)
 
int32_t writeSetEnd ()
 
int32_t writeBool (const bool value)
 
int32_t writeByte (const int8_t byte)
 
int32_t writeI16 (const int16_t i16)
 
int32_t writeI32 (const int32_t i32)
 
int32_t writeI64 (const int64_t i64)
 
int32_t writeU16 (const uint16_t i16)
 
int32_t writeU32 (const uint32_t i32)
 
int32_t writeU64 (const uint64_t i64)
 
int32_t writeIPV4 (const uint32_t ip4)
 
int32_t writeIPADDR (const boost::asio::ip::address &ipaddress)
 
int32_t writeDouble (const double dub)
 
int32_t writeString (const std::string &str)
 
int32_t writeBinary (const std::string &str)
 
int32_t writeXML (const std::string &str)
 
int32_t writeUUID (const boost::uuids::uuid &uuid)
 
int32_t skip (TType type)
 
- Public Member Functions inherited from contrail::sandesh::protocol::TProtocol
virtual ~TProtocol ()
 
virtual int32_t writeMessageBegin_virt (const std::string &name, const TMessageType messageType, const int32_t seqid)=0
 
virtual int32_t writeMessageEnd_virt ()=0
 
virtual int32_t writeStructBegin_virt (const char *name)=0
 
virtual int32_t writeStructEnd_virt ()=0
 
virtual int32_t writeSandeshBegin_virt (const char *name)=0
 
virtual int32_t writeSandeshEnd_virt ()=0
 
virtual int32_t writeContainerElementBegin_virt ()=0
 
virtual int32_t writeContainerElementEnd_virt ()=0
 
virtual int32_t writeFieldBegin_virt (const char *name, const TType fieldType, const int16_t fieldId, const std::map< std::string, std::string > *const amap)=0
 
virtual int32_t writeFieldEnd_virt ()=0
 
virtual int32_t writeFieldStop_virt ()=0
 
virtual int32_t writeMapBegin_virt (const TType keyType, const TType valType, const uint32_t size)=0
 
virtual int32_t writeMapEnd_virt ()=0
 
virtual int32_t writeListBegin_virt (const TType elemType, const uint32_t size)=0
 
virtual int32_t writeListEnd_virt ()=0
 
virtual int32_t writeSetBegin_virt (const TType elemType, const uint32_t size)=0
 
virtual int32_t writeSetEnd_virt ()=0
 
virtual int32_t writeBool_virt (const bool value)=0
 
virtual int32_t writeByte_virt (const int8_t byte)=0
 
virtual int32_t writeI16_virt (const int16_t i16)=0
 
virtual int32_t writeI32_virt (const int32_t i32)=0
 
virtual int32_t writeI64_virt (const int64_t i64)=0
 
virtual int32_t writeU16_virt (const uint16_t u16)=0
 
virtual int32_t writeU32_virt (const uint32_t u32)=0
 
virtual int32_t writeU64_virt (const uint64_t u64)=0
 
virtual int32_t writeIPV4_virt (const uint32_t ip4)=0
 
virtual int32_t writeIPADDR_virt (const boost::asio::ip::address &ipaddress)=0
 
virtual int32_t writeDouble_virt (const double dub)=0
 
virtual int32_t writeString_virt (const std::string &str)=0
 
virtual int32_t writeBinary_virt (const std::string &str)=0
 
virtual int32_t writeXML_virt (const std::string &str)=0
 
virtual int32_t writeUUID_virt (const boost::uuids::uuid &uuid)=0
 
int32_t writeMessageBegin (const std::string &name, const TMessageType messageType, const int32_t seqid)
 
int32_t writeMessageEnd ()
 
int32_t writeStructBegin (const char *name)
 
int32_t writeStructEnd ()
 
int32_t writeSandeshBegin (const char *name)
 
int32_t writeSandeshEnd ()
 
int32_t writeContainerElementBegin ()
 
int32_t writeContainerElementEnd ()
 
int32_t writeFieldBegin (const char *name, const TType fieldType, const int16_t fieldId, const std::map< std::string, std::string > *const amap=NULL)
 
int32_t writeFieldEnd ()
 
int32_t writeFieldStop ()
 
int32_t writeMapBegin (const TType keyType, const TType valType, const uint32_t size)
 
int32_t writeMapEnd ()
 
int32_t writeListBegin (const TType elemType, const uint32_t size)
 
int32_t writeListEnd ()
 
int32_t writeSetBegin (const TType elemType, const uint32_t size)
 
int32_t writeSetEnd ()
 
int32_t writeBool (const bool value)
 
int32_t writeByte (const int8_t byte)
 
int32_t writeI16 (const int16_t i16)
 
int32_t writeI32 (const int32_t i32)
 
int32_t writeI64 (const int64_t i64)
 
int32_t writeU16 (const uint16_t u16)
 
int32_t writeU32 (const uint32_t u32)
 
int32_t writeU64 (const uint64_t u64)
 
int32_t writeIPV4 (const uint32_t ip4)
 
int32_t writeIPADDR (const boost::asio::ip::address &ipaddress)
 
int32_t writeDouble (const double dub)
 
int32_t writeString (const std::string &str)
 
int32_t writeBinary (const std::string &str)
 
int32_t writeXML (const std::string &str)
 
int32_t writeUUID (const boost::uuids::uuid &uuid)
 
virtual int32_t readMessageBegin_virt (std::string &name, TMessageType &messageType, int32_t &seqid)=0
 
virtual int32_t readMessageEnd_virt ()=0
 
virtual int32_t readStructBegin_virt (std::string &name)=0
 
virtual int32_t readStructEnd_virt ()=0
 
virtual int32_t readSandeshBegin_virt (std::string &name)=0
 
virtual int32_t readSandeshEnd_virt ()=0
 
virtual int32_t readContainerElementBegin_virt ()=0
 
virtual int32_t readContainerElementEnd_virt ()=0
 
virtual int32_t readFieldBegin_virt (std::string &name, TType &fieldType, int16_t &fieldId)=0
 
virtual int32_t readFieldEnd_virt ()=0
 
virtual int32_t readMapBegin_virt (TType &keyType, TType &valType, uint32_t &size)=0
 
virtual int32_t readMapEnd_virt ()=0
 
virtual int32_t readListBegin_virt (TType &elemType, uint32_t &size)=0
 
virtual int32_t readListEnd_virt ()=0
 
virtual int32_t readSetBegin_virt (TType &elemType, uint32_t &size)=0
 
virtual int32_t readSetEnd_virt ()=0
 
virtual int32_t readBool_virt (bool &value)=0
 
virtual int32_t readBool_virt (std::vector< bool >::reference value)=0
 
virtual int32_t readByte_virt (int8_t &byte)=0
 
virtual int32_t readI16_virt (int16_t &i16)=0
 
virtual int32_t readI32_virt (int32_t &i32)=0
 
virtual int32_t readI64_virt (int64_t &i64)=0
 
virtual int32_t readU16_virt (uint16_t &u16)=0
 
virtual int32_t readU32_virt (uint32_t &u32)=0
 
virtual int32_t readU64_virt (uint64_t &u64)=0
 
virtual int32_t readIPV4_virt (uint32_t &ip4)=0
 
virtual int32_t readIPADDR_virt (boost::asio::ip::address &ipaddress)=0
 
virtual int32_t readDouble_virt (double &dub)=0
 
virtual int32_t readString_virt (std::string &str)=0
 
virtual int32_t readBinary_virt (std::string &str)=0
 
virtual int32_t readXML_virt (std::string &str)=0
 
virtual int32_t readUUID_virt (boost::uuids::uuid &uuid)=0
 
int32_t readMessageBegin (std::string &name, TMessageType &messageType, int32_t &seqid)
 
int32_t readMessageEnd ()
 
int32_t readStructBegin (std::string &name)
 
int32_t readStructEnd ()
 
int32_t readSandeshBegin (std::string &name)
 
int32_t readSandeshEnd ()
 
int32_t readContainerElementBegin ()
 
int32_t readContainerElementEnd ()
 
int32_t readFieldBegin (std::string &name, TType &fieldType, int16_t &fieldId)
 
int32_t readFieldEnd ()
 
int32_t readMapBegin (TType &keyType, TType &valType, uint32_t &size)
 
int32_t readMapEnd ()
 
int32_t readListBegin (TType &elemType, uint32_t &size)
 
int32_t readListEnd ()
 
int32_t readSetBegin (TType &elemType, uint32_t &size)
 
int32_t readSetEnd ()
 
int32_t readBool (bool &value)
 
int32_t readByte (int8_t &byte)
 
int32_t readI16 (int16_t &i16)
 
int32_t readI32 (int32_t &i32)
 
int32_t readI64 (int64_t &i64)
 
int32_t readU16 (uint16_t &u16)
 
int32_t readU32 (uint32_t &u32)
 
int32_t readU64 (uint64_t &u64)
 
int32_t readIPV4 (uint32_t &ip4)
 
int32_t readIPADDR (boost::asio::ip::address &ipaddress)
 
int32_t readDouble (double &dub)
 
int32_t readString (std::string &str)
 
int32_t readBinary (std::string &str)
 
int32_t readXML (std::string &str)
 
int32_t readUUID (boost::uuids::uuid &uuid)
 
int32_t readBool (std::vector< bool >::reference value)
 
int32_t skip (TType type)
 
virtual int32_t skip_virt (TType type)
 
boost::shared_ptr< TTransportgetTransport ()
 

Protected Member Functions

 TProtocolDefaults (boost::shared_ptr< TTransport > ptrans)
 
- Protected Member Functions inherited from contrail::sandesh::protocol::TProtocol
 TProtocol (boost::shared_ptr< TTransport > ptrans)
 

Additional Inherited Members

- Protected Attributes inherited from contrail::sandesh::protocol::TProtocol
boost::shared_ptr< TTransportptrans_
 

Detailed Description

Helper class that provides default implementations of TProtocol methods.

This class provides default implementations of the non-virtual TProtocol methods. It exists primarily so TVirtualProtocol can derive from it. It prevents TVirtualProtocol methods from causing infinite recursion if the non-virtual methods are not overridden by the TVirtualProtocol subclass.

You probably don't want to use this class directly. Use TVirtualProtocol instead.

Definition at line 44 of file TVirtualProtocol.h.

Constructor & Destructor Documentation

contrail::sandesh::protocol::TProtocolDefaults::TProtocolDefaults ( boost::shared_ptr< TTransport ptrans)
inlineprotected

Definition at line 507 of file TVirtualProtocol.h.

Member Function Documentation

int32_t contrail::sandesh::protocol::TProtocolDefaults::readBinary ( std::string &  str)
inline

Definition at line 252 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readBool ( bool &  value)
inline

Definition at line 161 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readBool ( std::vector< bool >::reference  value)
inline

Definition at line 168 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readByte ( int8_t &  byte)
inline

Definition at line 175 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readContainerElementBegin ( )
inline

Definition at line 89 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readContainerElementEnd ( )
inline

Definition at line 95 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readDouble ( double &  dub)
inline

Definition at line 238 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readFieldBegin ( std::string &  name,
TType fieldType,
int16_t &  fieldId 
)
inline

Definition at line 101 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readFieldEnd ( )
inline

Definition at line 112 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readI16 ( int16_t &  i16)
inline

Definition at line 182 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readI32 ( int32_t &  i32)
inline

Definition at line 189 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readI64 ( int64_t &  i64)
inline

Definition at line 196 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readIPADDR ( boost::asio::ip::address &  ipaddress)
inline

Definition at line 231 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readIPV4 ( uint32_t &  ip4)
inline

Definition at line 224 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readListBegin ( TType elemType,
uint32_t &  size 
)
inline

Definition at line 133 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readListEnd ( )
inline

Definition at line 141 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readMapBegin ( TType keyType,
TType valType,
uint32_t &  size 
)
inline

Definition at line 118 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readMapEnd ( )
inline

Definition at line 127 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readMessageBegin ( std::string &  name,
TMessageType messageType,
int32_t &  seqid 
)
inline

Definition at line 46 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readMessageEnd ( )
inline

Definition at line 57 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readSandeshBegin ( std::string &  name)
inline

Definition at line 76 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readSandeshEnd ( )
inline

Definition at line 83 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readSetBegin ( TType elemType,
uint32_t &  size 
)
inline

Definition at line 147 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readSetEnd ( )
inline

Definition at line 155 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readString ( std::string &  str)
inline

Definition at line 245 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readStructBegin ( std::string &  name)
inline

Definition at line 63 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readStructEnd ( )
inline

Definition at line 70 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readU16 ( uint16_t &  u16)
inline

Definition at line 203 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readU32 ( uint32_t &  u32)
inline

Definition at line 210 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readU64 ( uint64_t &  u64)
inline

Definition at line 217 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readUUID ( boost::uuids::uuid uuid)
inline

Definition at line 266 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::readXML ( std::string &  str)
inline

Definition at line 259 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::skip ( TType  type)
inline

Definition at line 502 of file TVirtualProtocol.h.

Here is the call graph for this function:

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeBinary ( const std::string &  str)
inline

Definition at line 481 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeBool ( const bool  value)
inline

Definition at line 397 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeByte ( const int8_t  byte)
inline

Definition at line 404 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeContainerElementBegin ( )
inline

Definition at line 316 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeContainerElementEnd ( )
inline

Definition at line 322 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeDouble ( const double  dub)
inline

Definition at line 467 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeFieldBegin ( const char *  name,
const TType  fieldType,
const int16_t  fieldId,
const std::map< std::string, std::string > *const  amap = NULL 
)
inline

Definition at line 328 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeFieldEnd ( )
inline

Definition at line 340 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeFieldStop ( )
inline

Definition at line 346 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeI16 ( const int16_t  i16)
inline

Definition at line 411 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeI32 ( const int32_t  i32)
inline

Definition at line 418 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeI64 ( const int64_t  i64)
inline

Definition at line 425 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeIPADDR ( const boost::asio::ip::address &  ipaddress)
inline

Definition at line 460 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeIPV4 ( const uint32_t  ip4)
inline

Definition at line 453 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeListBegin ( const TType  elemType,
const uint32_t  size 
)
inline

Definition at line 369 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeListEnd ( )
inline

Definition at line 377 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeMapBegin ( const TType  keyType,
const TType  valType,
const uint32_t  size 
)
inline

Definition at line 352 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeMapEnd ( )
inline

Definition at line 363 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeMessageBegin ( const std::string &  name,
const TMessageType  messageType,
const int32_t  seqid 
)
inline

Definition at line 273 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeMessageEnd ( )
inline

Definition at line 284 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeSandeshBegin ( const char *  name)
inline

Definition at line 303 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeSandeshEnd ( )
inline

Definition at line 310 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeSetBegin ( const TType  elemType,
const uint32_t  size 
)
inline

Definition at line 383 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeSetEnd ( )
inline

Definition at line 391 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeString ( const std::string &  str)
inline

Definition at line 474 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeStructBegin ( const char *  name)
inline

Definition at line 290 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeStructEnd ( )
inline

Definition at line 297 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeU16 ( const uint16_t  i16)
inline

Definition at line 432 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeU32 ( const uint32_t  i32)
inline

Definition at line 439 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeU64 ( const uint64_t  i64)
inline

Definition at line 446 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeUUID ( const boost::uuids::uuid uuid)
inline

Definition at line 495 of file TVirtualProtocol.h.

int32_t contrail::sandesh::protocol::TProtocolDefaults::writeXML ( const std::string &  str)
inline

Definition at line 488 of file TVirtualProtocol.h.


The documentation for this class was generated from the following file: