OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_sandesh Class Reference

#include <t_sandesh.h>

Inheritance diagram for t_sandesh:
Collaboration diagram for t_sandesh:

Public Member Functions

 t_sandesh (t_program *program)
 
 t_sandesh (t_program *program, const std::string &name)
 
virtual std::string get_struct_type_name ()
 
virtual bool is_sandesh () const
 
void set_type (t_type *type)
 
bool exist_opt_field ()
 
const t_typeget_type ()
 
bool is_level_category_supported () const
 
virtual bool has_key_annotation () const
 
- Public Member Functions inherited from t_struct_common
virtual ~t_struct_common ()
 
const members_typeget_members ()
 
const members_typeget_sorted_members ()
 
bool append (t_field *elem)
 
virtual std::string get_fingerprint_material () const
 
virtual void generate_fingerprint ()
 
- Public Member Functions inherited from t_type
virtual ~t_type ()
 
virtual void set_name (const std::string &name)
 
virtual const std::string & get_name () const
 
virtual bool is_void () const
 
virtual bool is_base_type () const
 
virtual bool is_string () const
 
virtual bool is_bool () const
 
virtual bool is_typedef () const
 
virtual bool is_enum () const
 
virtual bool is_struct () const
 
virtual bool is_xception () const
 
virtual bool is_container () const
 
virtual bool is_list () const
 
virtual bool is_set () const
 
virtual bool is_map () const
 
virtual bool is_service () const
 
t_programget_program ()
 
t_typeget_true_type ()
 
bool has_fingerprint () const
 
const uint8_t * get_binary_fingerprint () const
 
std::string get_ascii_fingerprint () const
 
const uint32_t get_4byte_fingerprint () const
 
- Public Member Functions inherited from t_doc
 t_doc ()
 
void set_doc (const std::string &doc)
 
const std::string & get_doc () const
 
bool has_doc ()
 

Private Attributes

t_typetype_
 

Additional Inherited Members

- Public Types inherited from t_struct_common
typedef std::vector< t_field * > members_type
 
- Static Public Member Functions inherited from t_type
static char nybble_to_xdigit (int num)
 
static std::string byte_to_hex (uint8_t byte)
 
- Public Attributes inherited from t_type
std::map< std::string,
std::string > 
annotations_
 
- Static Public Attributes inherited from t_type
static const int fingerprint_len = 16
 
- Protected Member Functions inherited from t_struct_common
 t_struct_common (t_program *program)
 
 t_struct_common (t_program *program, const std::string &name)
 
- Protected Member Functions inherited from t_type
 t_type ()
 
 t_type (t_program *program)
 
 t_type (t_program *program, std::string name)
 
 t_type (std::string name)
 
- Protected Attributes inherited from t_struct_common
members_type members_
 
members_type members_in_id_order_
 
- Protected Attributes inherited from t_type
t_programprogram_
 
std::string name_
 
uint8_t fingerprint_ [fingerprint_len]
 

Detailed Description

A sandesh is a container for a set of member fields that has a name.

Definition at line 39 of file t_sandesh.h.

Constructor & Destructor Documentation

t_sandesh::t_sandesh ( t_program program)
inline

Definition at line 41 of file t_sandesh.h.

t_sandesh::t_sandesh ( t_program program,
const std::string &  name 
)
inline

Definition at line 45 of file t_sandesh.h.

Member Function Documentation

bool t_sandesh::exist_opt_field ( )
inline

Definition at line 61 of file t_sandesh.h.

virtual std::string t_sandesh::get_struct_type_name ( )
inlinevirtual

Implements t_struct_common.

Definition at line 49 of file t_sandesh.h.

const t_type* t_sandesh::get_type ( )
inline

Definition at line 71 of file t_sandesh.h.

virtual bool t_sandesh::has_key_annotation ( ) const
virtual
bool t_sandesh::is_level_category_supported ( ) const
inline

Definition at line 75 of file t_sandesh.h.

virtual bool t_sandesh::is_sandesh ( ) const
inlinevirtual

Definition at line 53 of file t_sandesh.h.

void t_sandesh::set_type ( t_type type)
inline

Definition at line 57 of file t_sandesh.h.

Member Data Documentation

t_type* t_sandesh::type_
private

Definition at line 84 of file t_sandesh.h.


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