OpenMW
|
#include <nestedcolumnadapter.hpp>
Public Member Functions | |
Record () | |
Record (State state, const ESXRecordT *base=0, const ESXRecordT *modified=0) | |
virtual RecordBase * | clone () const |
virtual RecordBase * | modifiedCopy () 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 } |
CSMWorld::Record< ESXRecordT >::Record | ( | ) |
CSMWorld::Record< ESXRecordT >::Record | ( | State | state, |
const ESXRecordT * | base = 0 , |
||
const ESXRecordT * | modified = 0 |
||
) |
|
virtual |
Will throw an exception if the types don't match.
Implements CSMWorld::RecordBase.
|
virtual |
Implements CSMWorld::RecordBase.
const ESXRecordT & CSMWorld::Record< ESXRecordT >::get | ( | ) | const |
Throws an exception, if the record is deleted.
ESXRecordT & CSMWorld::Record< ESXRecordT >::get | ( | ) |
Throws an exception, if the record is deleted.
const ESXRecordT & CSMWorld::Record< ESXRecordT >::getBase | ( | ) | const |
Throws an exception, if the record is deleted. Returns modified, if there is no base.
void CSMWorld::Record< ESXRecordT >::merge | ( | ) |
Merge modified into base.
|
virtual |
Implements CSMWorld::RecordBase.
void CSMWorld::Record< ESXRecordT >::setModified | ( | const ESXRecordT & | modified | ) |
Throws an exception, if the record is deleted.
ESXRecordT CSMWorld::Record< ESXRecordT >::mBase |
ESXRecordT CSMWorld::Record< ESXRecordT >::mModified |