Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Data Fields
SQL::Data Class Reference

#include <sql.h>

Inheritance diagram for SQL::Data:
Inheritance graph
[legend]
Collaboration diagram for SQL::Data:
Collaboration graph
[legend]

Public Types

typedef std::map
< Anope::string,
std::stringstream * > 
Map
 
- Public Types inherited from Serialize::Data
enum  Type { DT_TEXT, DT_INT }
 

Public Member Functions

 ~Data ()
 
std::iostream & operator[] (const Anope::string &key) anope_override
 
std::set< Anope::stringKeySet () const anope_override
 
size_t Hash () const anope_override
 
std::map< Anope::string,
std::iostream * > 
GetData () const
 
void Clear ()
 
void SetType (const Anope::string &key, Type t) anope_override
 
Type GetType (const Anope::string &key) const anope_override
 

Data Fields

Map data
 
std::map< Anope::string, Typetypes
 

Detailed Description

Definition at line 11 of file sql.h.

Member Typedef Documentation

typedef std::map<Anope::string, std::stringstream *> SQL::Data::Map

Definition at line 14 of file sql.h.

Constructor & Destructor Documentation

SQL::Data::~Data ( )
inlinevirtual

Reimplemented from Serialize::Data.

Definition at line 18 of file sql.h.

References Clear().

Member Function Documentation

void SQL::Data::Clear ( )
inline

Definition at line 56 of file sql.h.

Referenced by ~Data().

std::map<Anope::string, std::iostream *> SQL::Data::GetData ( ) const
inline

Definition at line 48 of file sql.h.

Type SQL::Data::GetType ( const Anope::string key) const
inlinevirtual

Reimplemented from Serialize::Data.

Definition at line 68 of file sql.h.

References Serialize::Data::DT_TEXT.

Referenced by SQLiteService::CreateTable(), and MySQLService::CreateTable().

size_t SQL::Data::Hash ( ) const
inlinevirtual

Reimplemented from Serialize::Data.

Definition at line 39 of file sql.h.

std::set<Anope::string> SQL::Data::KeySet ( ) const
inlinevirtual

Reimplemented from Serialize::Data.

Definition at line 31 of file sql.h.

std::iostream& SQL::Data::operator[] ( const Anope::string key)
inlinevirtual

Implements Serialize::Data.

Definition at line 23 of file sql.h.

void SQL::Data::SetType ( const Anope::string key,
Type  t 
)
inlinevirtual

Reimplemented from Serialize::Data.

Definition at line 63 of file sql.h.

Field Documentation

Map SQL::Data::data
std::map<Anope::string, Type> SQL::Data::types

Definition at line 16 of file sql.h.


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