InspIRCd  3.0
Public Member Functions | List of all members
LocalExtItem Class Referenceabstract

#include <extensible.h>

Inheritance diagram for LocalExtItem:
ExtensionItem ServiceProvider usecountbase classbase LocalIntExt SimpleExtItem< T, Del > SimpleExtItem< ChanData > SimpleExtItem< std::string > LocalStringExt

Public Member Functions

 LocalExtItem (const std::string &key, ExtensibleType exttype, Module *owner)
std::string serialize (SerializeFormat format, const Extensible *container, void *item) const CXX11_OVERRIDE
void unserialize (SerializeFormat format, Extensible *container, const std::string &value) CXX11_OVERRIDE
void free (Extensible *container, void *item) CXX11_OVERRIDE=0
- Public Member Functions inherited from ExtensionItem
 ExtensionItem (const std::string &key, ExtensibleType exttype, Module *owner)
void RegisterService () CXX11_OVERRIDE
- Public Member Functions inherited from ServiceProvider
 ServiceProvider (Module *Creator, const std::string &Name, ServiceType Type)
void DisableAutoRegister ()
- Public Member Functions inherited from classbase
virtual CullResult cull ()
- Public Member Functions inherited from usecountbase
unsigned int GetUseCount () const
void refcount_inc () const
bool refcount_dec () const

Additional Inherited Members

- Public Types inherited from ExtensionItem
- Public Attributes inherited from ExtensionItem
const ExtensibleType type
- Public Attributes inherited from ServiceProvider
ModuleRef creator
const std::string name
const ServiceType service
- Protected Member Functions inherited from ExtensionItem
void * get_raw (const Extensible *container) const
void * set_raw (Extensible *container, void *value)
void * unset_raw (Extensible *container)

Detailed Description

Base class for items that are NOT synchronized between servers

Member Function Documentation

◆ free()

void LocalExtItem::free ( Extensible container,
void *  item 
pure virtual

◆ serialize()

std::string LocalExtItem::serialize ( SerializeFormat  format,
const Extensible container,
void *  item 
) const

Serialize this item into a string

formatThe format to serialize to
containerThe object containing this item
itemThe item itself

Implements ExtensionItem.

Reimplemented in LocalIntExt, and LocalStringExt.

◆ unserialize()

void LocalExtItem::unserialize ( SerializeFormat  format,
Extensible container,
const std::string &  value 

Convert the string form back into an item

formatThe format to serialize from (not FORMAT_USER)
containerThe object that this item applies to
valueThe return from a serialize() call that was run elsewhere with this key

Implements ExtensionItem.

Reimplemented in LocalIntExt, and LocalStringExt.

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