Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

Easdif::SDIFNameValueTable Class Reference

class which can be associated with a Name Value Table More...

#include <sdifnamevaluetable.hpp>

List of all members.

Public Types

typedef NVTMap::const_iterator const_iterator
 iterator types for iterating over the internal map

Public Member Functions

int AddNameValue (const std::string &name, const std::string &value)
 add a Name Value in the map
SdifUInt4 SetStreamID (const SdifUInt4 &streamid)
 set the streamID
void PrintNameValue (const std::string &name) const
 print a Name Value
void PrintNameValueTable () const
 print a Name Value Table
int GetNbNameValue ()
 get the number of Name Value
SdifUInt4 GetStreamID ()
 get the StreamID
std::string GetValue (const std::string &name) const
 get the Value
bool GetValue (const std::string &name, std::string &value) const
 get the Value


Detailed Description

class which can be associated with a Name Value Table

SDIFNameValueTable is composed of different methods which permits to manipulate a Name Value Table.

It is derived from std::map<std::string,std::string> and provides all methods of that class


Member Function Documentation

int Easdif::SDIFNameValueTable::AddNameValue const std::string &  name,
const std::string &  value
 

add a Name Value in the map

Parameters:
name 
value 
Returns:
the number of Name Values in the map

SdifUInt4 Easdif::SDIFNameValueTable::SetStreamID const SdifUInt4 &  streamid  ) 
 

set the streamID

Parameters:
streamid 
Returns:

void Easdif::SDIFNameValueTable::PrintNameValue const std::string &  name  )  const
 

print a Name Value

Parameters:
name 

std::string Easdif::SDIFNameValueTable::GetValue const std::string &  name  )  const
 

get the Value

Parameters:
name string
Returns:
value string

bool Easdif::SDIFNameValueTable::GetValue const std::string &  name,
std::string &  value
const
 

get the Value

Parameters:
name string
value result string
Returns:
true if name was found false if not.


The documentation for this class was generated from the following files:
Generated on Tue Jan 3 15:01:00 2006 for Easdif by  doxygen 1.3.9.1