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

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

◆ Type

enum Serialize::Data::Type

Definition at line 26 of file serialize.h.

Constructor & Destructor Documentation

◆ ~Data()

virtual Serialize::Data::~Data ( )

Reimplemented in Data, and SQL::Data.

Definition at line 32 of file serialize.h.

References operator[]().

Member Function Documentation

◆ GetType()

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

Reimplemented in SQL::Data.

Definition at line 39 of file serialize.h.

References Serialize::CheckTypes(), DT_TEXT, and Serialize::RegisterTypes().

◆ Hash()

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

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

Definition at line 36 of file serialize.h.

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

◆ KeySet()

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

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

Definition at line 35 of file serialize.h.

◆ operator[]()

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

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

Referenced by ~Data().

◆ SetType()

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

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