Anope IRC Services  Version 2.0
Public Types | Public Member Functions
Serialize::Data Class Referenceabstract

#include <serialize.h>

Inheritance diagram for Serialize::Data:
Inheritance graph
[legend]

Public Types

enum  Type { DT_TEXT, DT_INT }
 

Public Member Functions

virtual ~Data ()
 
virtual std::iostream & operator[] (const Anope::string &key)=0
 
virtual std::set< Anope::stringKeySet () const
 
virtual size_t Hash () const
 
virtual void SetType (const Anope::string &key, Type t)
 
virtual Type GetType (const Anope::string &key) const
 

Detailed Description

Definition at line 23 of file serialize.h.

Member Enumeration Documentation

enum Serialize::Data::Type
Enumerator
DT_TEXT 
DT_INT 

Definition at line 26 of file serialize.h.

Constructor & Destructor Documentation

virtual Serialize::Data::~Data ( )
inlinevirtual

Reimplemented in Data, and SQL::Data.

Definition at line 32 of file serialize.h.

Member Function Documentation

virtual Type Serialize::Data::GetType ( const Anope::string key) const
inlinevirtual

Reimplemented in SQL::Data.

Definition at line 39 of file serialize.h.

References DT_TEXT.

virtual size_t Serialize::Data::Hash ( ) const
inlinevirtual

Reimplemented in LoadData, Data, and SQL::Data.

Definition at line 36 of file serialize.h.

Referenced by Serializable::IsCached(), and Serializable::UpdateCache().

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

Reimplemented in LoadData, Data, and SQL::Data.

Definition at line 35 of file serialize.h.

virtual std::iostream& Serialize::Data::operator[] ( const Anope::string key)
pure virtual

Implemented in LoadData, Data, SaveData, and SQL::Data.

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

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