OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
CSMWorld::Record< ESXRecordT > Struct Template Reference

#include <nestedcolumnadapter.hpp>

Inheritance diagram for CSMWorld::Record< ESXRecordT >:
Collaboration diagram for CSMWorld::Record< ESXRecordT >:

Public Member Functions

 Record ()
 
 Record (State state, const ESXRecordT *base=0, const ESXRecordT *modified=0)
 
virtual RecordBaseclone () const
 
virtual RecordBasemodifiedCopy () const
 
virtual void assign (const RecordBase &record)
 Will throw an exception if the types don't match. More...
 
const ESXRecordT & get () const
 Throws an exception, if the record is deleted. More...
 
ESXRecordT & get ()
 Throws an exception, if the record is deleted. More...
 
const ESXRecordT & getBase () const
 Throws an exception, if the record is deleted. Returns modified, if there is no base. More...
 
void setModified (const ESXRecordT &modified)
 Throws an exception, if the record is deleted. More...
 
void merge ()
 Merge modified into base. More...
 
- Public Member Functions inherited from CSMWorld::RecordBase
virtual ~RecordBase ()
 
bool isDeleted () const
 
bool isErased () const
 
bool isModified () const
 

Public Attributes

ESXRecordT mBase
 
ESXRecordT mModified
 
- Public Attributes inherited from CSMWorld::RecordBase
State mState
 

Additional Inherited Members

- Public Types inherited from CSMWorld::RecordBase
enum  State {
  State_BaseOnly = 0, State_Modified = 1, State_ModifiedOnly = 2, State_Deleted = 3,
  State_Erased = 4
}
 

Constructor & Destructor Documentation

template<typename ESXRecordT >
CSMWorld::Record< ESXRecordT >::Record ( )
template<typename ESXRecordT>
CSMWorld::Record< ESXRecordT >::Record ( State  state,
const ESXRecordT *  base = 0,
const ESXRecordT *  modified = 0 
)

Member Function Documentation

template<typename ESXRecordT >
void CSMWorld::Record< ESXRecordT >::assign ( const RecordBase record)
virtual

Will throw an exception if the types don't match.

Implements CSMWorld::RecordBase.

Here is the caller graph for this function:

template<typename ESXRecordT >
RecordBase * CSMWorld::Record< ESXRecordT >::clone ( ) const
virtual

Implements CSMWorld::RecordBase.

template<typename ESXRecordT >
const ESXRecordT & CSMWorld::Record< ESXRecordT >::get ( ) const

Throws an exception, if the record is deleted.

template<typename ESXRecordT >
ESXRecordT & CSMWorld::Record< ESXRecordT >::get ( )

Throws an exception, if the record is deleted.

template<typename ESXRecordT >
const ESXRecordT & CSMWorld::Record< ESXRecordT >::getBase ( ) const

Throws an exception, if the record is deleted. Returns modified, if there is no base.

template<typename ESXRecordT >
void CSMWorld::Record< ESXRecordT >::merge ( )

Merge modified into base.

template<typename ESXRecordT >
RecordBase * CSMWorld::Record< ESXRecordT >::modifiedCopy ( ) const
virtual

Implements CSMWorld::RecordBase.

template<typename ESXRecordT>
void CSMWorld::Record< ESXRecordT >::setModified ( const ESXRecordT &  modified)

Throws an exception, if the record is deleted.

Member Data Documentation

template<typename ESXRecordT>
ESXRecordT CSMWorld::Record< ESXRecordT >::mBase
template<typename ESXRecordT>
ESXRecordT CSMWorld::Record< ESXRecordT >::mModified

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