ManaPlus
Public Member Functions
ConfigurationListManager< T, CONT > Class Template Referenceabstract

#include <configuration.h>

Public Member Functions

 ConfigurationListManager ()
 
virtual ConfigurationObjectwriteConfigItem (const T &value, ConfigurationObject *const obj) const =0
 
virtual CONT readConfigItem (const ConfigurationObject *const obj, CONT container) const =0
 
virtual ~ConfigurationListManager ()
 

Detailed Description

template<class T, class CONT>
class ConfigurationListManager< T, CONT >

Configuration list manager interface; responsible for serializing/deserializing configuration choices in containers.

Parameters
TType of the container elements to serialise
CONTType of the container we (de)serialise

Definition at line 48 of file configuration.h.

Constructor & Destructor Documentation

◆ ConfigurationListManager()

template<class T , class CONT >
ConfigurationListManager< T, CONT >::ConfigurationListManager ( )
inline

Definition at line 51 of file configuration.h.

52  { }

◆ ~ConfigurationListManager()

template<class T , class CONT >
virtual ConfigurationListManager< T, CONT >::~ConfigurationListManager ( )
inlinevirtual

Definition at line 78 of file configuration.h.

79  { }

Member Function Documentation

◆ readConfigItem()

template<class T , class CONT >
virtual CONT ConfigurationListManager< T, CONT >::readConfigItem ( const ConfigurationObject *const  obj,
CONT  container 
) const
pure virtual

Reads a value from a configuration object

Parameters
objThe configuration object to read from
containerThe container to insert the object to

Implemented in anonymous_namespace{playerrelations.cpp}::PlayerConfSerialiser.

Referenced by ConfigurationObject::getList().

◆ writeConfigItem()

template<class T , class CONT >
virtual ConfigurationObject* ConfigurationListManager< T, CONT >::writeConfigItem ( const T &  value,
ConfigurationObject *const  obj 
) const
pure virtual

Writes a value into a configuration object

Parameters
valueThe value to write out
objThe configuation object to write to
Returns
obj, or otherwise NULL to indicate that this option should be skipped

Implemented in anonymous_namespace{playerrelations.cpp}::PlayerConfSerialiser.

Referenced by ConfigurationObject::setList().


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