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

#include <agent_sandesh.h>

Public Types

typedef std::map< std::string,
std::string > 
ArgumentMap
 

Public Member Functions

 AgentSandeshArguments ()
 
 ~AgentSandeshArguments ()
 
bool Add (const std::string &key, const std::string &val)
 
bool Add (const std::string &key, int val)
 
bool Del (const std::string &key)
 
bool Get (const std::string &key, std::string *val) const
 
std::string GetString (const std::string &key) const
 
bool Get (const std::string &key, int *val) const
 
int GetInt (const std::string &key) const
 
int Encode (std::string *str)
 
int Decode (const std::string &str)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (AgentSandeshArguments)
 

Private Attributes

ArgumentMap arguments_
 

Detailed Description

Definition at line 22 of file agent_sandesh.h.

Member Typedef Documentation

typedef std::map<std::string, std::string> AgentSandeshArguments::ArgumentMap

Definition at line 24 of file agent_sandesh.h.

Constructor & Destructor Documentation

AgentSandeshArguments::AgentSandeshArguments ( )
inline

Definition at line 26 of file agent_sandesh.h.

AgentSandeshArguments::~AgentSandeshArguments ( )
inline

Definition at line 27 of file agent_sandesh.h.

Member Function Documentation

bool AgentSandeshArguments::Add ( const std::string &  key,
const std::string &  val 
)

Definition at line 616 of file agent_sandesh.cc.

bool AgentSandeshArguments::Add ( const std::string &  key,
int  val 
)

Definition at line 629 of file agent_sandesh.cc.

int AgentSandeshArguments::Decode ( const std::string &  str)

Definition at line 711 of file agent_sandesh.cc.

Here is the call graph for this function:

bool AgentSandeshArguments::Del ( const std::string &  key)

Definition at line 642 of file agent_sandesh.cc.

AgentSandeshArguments::DISALLOW_COPY_AND_ASSIGN ( AgentSandeshArguments  )
private
int AgentSandeshArguments::Encode ( std::string *  str)

Definition at line 688 of file agent_sandesh.cc.

bool AgentSandeshArguments::Get ( const std::string &  key,
std::string *  val 
) const

Definition at line 652 of file agent_sandesh.cc.

bool AgentSandeshArguments::Get ( const std::string &  key,
int *  val 
) const

Definition at line 670 of file agent_sandesh.cc.

int AgentSandeshArguments::GetInt ( const std::string &  key) const

Definition at line 680 of file agent_sandesh.cc.

string AgentSandeshArguments::GetString ( const std::string &  key) const

Definition at line 662 of file agent_sandesh.cc.

Member Data Documentation

ArgumentMap AgentSandeshArguments::arguments_
private

Definition at line 40 of file agent_sandesh.h.


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