Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
opentxs::OTDB::StringMap Class Reference

#include <OTStorage.hpp>

Inheritance diagram for opentxs::OTDB::StringMap:
Collaboration diagram for opentxs::OTDB::StringMap:

Public Member Functions

virtual ~StringMap ()
 
void SetValue (const std::string &strKey, const std::string &strValue)
 
std::string GetValue (const std::string &strKey)
 
- Public Member Functions inherited from opentxs::OTDB::Storable
virtual ~Storable ()
 

Public Attributes

std::map< std::string,
std::string > 
the_map
 

Protected Member Functions

 StringMap ()
 
- Protected Member Functions inherited from opentxs::OTDB::Storable
 Storable ()
 

Additional Inherited Members

- Static Public Member Functions inherited from opentxs::OTDB::Storable
static EXPORT StorableCreate (StoredObjectType eType, PackType thePackType)
 
- Protected Attributes inherited from opentxs::OTDB::Storable
std::string m_Type
 

Detailed Description

Definition at line 964 of file OTStorage.hpp.

Constructor & Destructor Documentation

opentxs::OTDB::StringMap::StringMap ( )
inlineprotected

Definition at line 970 of file OTStorage.hpp.

971  : Storable()
972  {
973  m_Type = "StringMap";
974  }
virtual opentxs::OTDB::StringMap::~StringMap ( )
inlinevirtual

Definition at line 977 of file OTStorage.hpp.

978  {
979  }

Member Function Documentation

std::string opentxs::OTDB::StringMap::GetValue ( const std::string &  strKey)
inline

Definition at line 990 of file OTStorage.hpp.

991  {
992  std::string ret_val("");
993  std::map<std::string, std::string>::iterator ii = the_map.find(strKey);
994  if (ii != the_map.end()) ret_val = (*ii).second;
995  return ret_val;
996  }
std::map< std::string, std::string > the_map
Definition: OTStorage.hpp:981
void opentxs::OTDB::StringMap::SetValue ( const std::string &  strKey,
const std::string &  strValue 
)
inline

Definition at line 983 of file OTStorage.hpp.

984  {
985  std::map<std::string, std::string>::iterator ii = the_map.find(strKey);
986  if (ii != the_map.end()) the_map.erase(ii);
987  the_map[strKey] = strValue;
988  }
std::map< std::string, std::string > the_map
Definition: OTStorage.hpp:981

Member Data Documentation

std::map<std::string, std::string> opentxs::OTDB::StringMap::the_map

Definition at line 981 of file OTStorage.hpp.


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