Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

db::Table Class Reference

#include <Table.h>

Inheritance diagram for db::Table:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Table (Database &)
virtual ~Table ()
Database * GetDatabase ()
virtual void save ()=0

Protected Member Functions

virtual void Spawn (const std::string &)=0
std::string sqlsafe (const std::string &)

Protected Attributes

bool m_new

Private Attributes

Database & m_db

Constructor & Destructor Documentation

db::Table::Table Database &   ) 
 

Definition at line 28 of file Table.cpp.

References m_new.

00028 : m_db(db) 00029 { 00030 m_new = true; 00031 }

db::Table::~Table  )  [virtual]
 

Definition at line 34 of file Table.cpp.

00035 { 00036 }


Member Function Documentation

Database* db::Table::GetDatabase  )  [inline]
 

Definition at line 35 of file Table.h.

References m_db.

Referenced by db::Sender::save(), db::Mailinst::save(), db::Sender::Spawn(), and db::Mailinst::Spawn().

00035 { return &m_db; }

virtual void db::Table::save  )  [pure virtual]
 

Implemented in db::Mailinst, and db::Sender.

virtual void db::Table::Spawn const std::string &   )  [protected, pure virtual]
 

Implemented in db::Mailinst, and db::Sender.

std::string db::Table::sqlsafe const std::string &   )  [protected]
 

Definition at line 39 of file Table.cpp.

00040 { 00041 std::string str; 00042 for (size_t i = 0; i < input.size(); i++) 00043 { 00044 if (input[i] == '\'') 00045 str += "'"; 00046 str += input[i]; 00047 } 00048 return str; 00049 }


Member Data Documentation

Database& db::Table::m_db [private]
 

Definition at line 46 of file Table.h.

Referenced by GetDatabase().

bool db::Table::m_new [protected]
 

Definition at line 42 of file Table.h.

Referenced by Table().


The documentation for this class was generated from the following files:
Generated for C++ Sockets library example: SMTP Proxy by doxygen 1.3.6

www.TV-friendship.com
The matchmaking service with an all new twist.

Quantum 'Teleportation'
Some thoughts
Page, code, and content Copyright (C) 2004 by Anders Hedström