OpenSDN source code
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

◆ ArgumentMap

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

Definition at line 24 of file agent_sandesh.h.

Constructor & Destructor Documentation

◆ AgentSandeshArguments()

AgentSandeshArguments::AgentSandeshArguments ( )
inline

Definition at line 26 of file agent_sandesh.h.

◆ ~AgentSandeshArguments()

AgentSandeshArguments::~AgentSandeshArguments ( )
inline

Definition at line 27 of file agent_sandesh.h.

Member Function Documentation

◆ Add() [1/2]

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

Definition at line 619 of file agent_sandesh.cc.

◆ Add() [2/2]

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

Definition at line 632 of file agent_sandesh.cc.

◆ Decode()

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

Definition at line 714 of file agent_sandesh.cc.

Here is the call graph for this function:

◆ Del()

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

Definition at line 645 of file agent_sandesh.cc.

◆ DISALLOW_COPY_AND_ASSIGN()

AgentSandeshArguments::DISALLOW_COPY_AND_ASSIGN ( AgentSandeshArguments  )
private

◆ Encode()

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

Definition at line 691 of file agent_sandesh.cc.

◆ Get() [1/2]

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

Definition at line 673 of file agent_sandesh.cc.

◆ Get() [2/2]

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

Definition at line 655 of file agent_sandesh.cc.

◆ GetInt()

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

Definition at line 683 of file agent_sandesh.cc.

◆ GetString()

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

Definition at line 665 of file agent_sandesh.cc.

Member Data Documentation

◆ arguments_

ArgumentMap AgentSandeshArguments::arguments_
private

Definition at line 40 of file agent_sandesh.h.


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