Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DatabaseRecord Class Reference

#include <DatabaseRecord.h>

List of all members.

Public Member Functions

void clear ()
void clear ()
 DatabaseRecord ()
 DatabaseRecord ()
void DeleteObject ()
void DeleteObject ()
double GetDouble (std::string key)
double GetDouble (std::string key)
long GetLong (std::string key)
long GetLong (std::string key)
 ~DatabaseRecord ()
 ~DatabaseRecord ()


Constructor & Destructor Documentation

DatabaseRecord::DatabaseRecord  )  [inline]
 

00010 {}

DatabaseRecord::~DatabaseRecord  )  [inline]
 

00013    {
00014         DeleteObject();
00015    }

DatabaseRecord::DatabaseRecord  )  [inline]
 

00010 {}

DatabaseRecord::~DatabaseRecord  )  [inline]
 

00013    {
00014         DeleteObject();
00015    }


Member Function Documentation

void DatabaseRecord::clear void   )  [inline]
 

00017               {
00018         DeleteObject();
00019   };

void DatabaseRecord::clear  )  [inline]
 

00017               {
00018         DeleteObject();
00019   };

void DatabaseRecord::DeleteObject  )  [inline]
 

00022    {
00023     DatabaseRecord::iterator it;
00024     for(it=this->begin(); it != this->end(); it++)
00025      {
00026        if((*it).second!=NULL)
00027        {
00028          delete[] (*it).second;
00029          (*it).second = NULL;
00030        }
00031      }
00032     erase(this->begin(),this->end());
00033    }

void DatabaseRecord::DeleteObject  )  [inline]
 

00022    {
00023     DatabaseRecord::iterator it;
00024     for(it=this->begin(); it != this->end(); it++)
00025      {
00026        if((*it).second!=NULL)
00027        {
00028          delete[] (*it).second;
00029          (*it).second = NULL;
00030        }
00031      }
00032     erase(this->begin(),this->end());
00033    }

double DatabaseRecord::GetDouble std::string  key  )  [inline]
 

00036      {
00037        DatabaseRecord::iterator it = find(key);
00038        if(it==end()) 
00039             return 0;
00040        return atof((*it).second);
00041      }

double DatabaseRecord::GetDouble std::string  key  )  [inline]
 

00036      {
00037        DatabaseRecord::iterator it = find(key);
00038        if(it==end()) 
00039             return 0;
00040        return atof((*it).second);
00041      }

long DatabaseRecord::GetLong std::string  key  )  [inline]
 

00044    {
00045        DatabaseRecord::iterator it = find(key);
00046        if(it==end())
00047             return 0;
00048        return atol((*it).second);
00049    }

long DatabaseRecord::GetLong std::string  key  )  [inline]
 

00044    {
00045        DatabaseRecord::iterator it = find(key);
00046        if(it==end())
00047             return 0;
00048        return atol((*it).second);
00049    }


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:56:39 2011 for BOSS6.5.5 by  doxygen 1.3.9.1