Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
Model::PersistentStoreMock Class Reference
Inheritance diagram for Model::PersistentStoreMock:
Model::PersistentStore

Public Member Functions

 PersistentStoreMock ()
 
 ~PersistentStoreMock ()
 
void clear ()
 
virtual PersistentStoreclone () const override
 
virtual QString currentNodeType () const override
 
const QString & getSaved () const
 
virtual bool isLoadingPartially () const override
 
virtual QList< LoadedNodeloadAllSubNodes (Node *parent, const QSet< QString > &loadPartially) override
 
virtual double loadDoubleValue () override
 
virtual int loadIntValue () override
 
virtual QString loadReferenceValue (Reference *r) override
 Returns a null string if the reference is resolved and a symbolic name if the reference is unresolved. More...
 
virtual QString loadStringValue () override
 
virtual NodeloadSubNode (Node *parent, const QString &name, bool loadPartially) override
 
virtual void saveDoubleValue (double value) override
 
virtual void saveIntValue (int value) override
 
virtual void saveNode (const Node *node, const QString &name) override
 
virtual void saveReferenceValue (const QString &name, const Node *target) override
 
virtual void saveStringValue (const QString &value) override
 
- Public Member Functions inherited from Model::PersistentStore
virtual ~PersistentStore ()
 

Protected Member Functions

virtual NodeloadTree (TreeManager *manager, const QString &name, bool loadPartially) override
 
virtual void saveTree (TreeManager *manager, const QString &name) override
 
- Protected Member Functions inherited from Model::PersistentStore
void setReferenceTargetr (Reference *r, Node *target)
 

Private Attributes

QString savedData
 

Constructor & Destructor Documentation

◆ PersistentStoreMock()

Model::PersistentStoreMock::PersistentStoreMock ( )

◆ ~PersistentStoreMock()

Model::PersistentStoreMock::~PersistentStoreMock ( )

Member Function Documentation

◆ clear()

void Model::PersistentStoreMock::clear ( )

◆ clone()

PersistentStore * Model::PersistentStoreMock::clone ( ) const
overridevirtual

◆ currentNodeType()

QString Model::PersistentStoreMock::currentNodeType ( ) const
overridevirtual

◆ getSaved()

const QString & Model::PersistentStoreMock::getSaved ( ) const

◆ isLoadingPartially()

bool Model::PersistentStoreMock::isLoadingPartially ( ) const
overridevirtual

◆ loadAllSubNodes()

QList< LoadedNode > Model::PersistentStoreMock::loadAllSubNodes ( Node parent,
const QSet< QString > &  loadPartially 
)
overridevirtual

◆ loadDoubleValue()

double Model::PersistentStoreMock::loadDoubleValue ( )
overridevirtual

◆ loadIntValue()

int Model::PersistentStoreMock::loadIntValue ( )
overridevirtual

◆ loadReferenceValue()

QString Model::PersistentStoreMock::loadReferenceValue ( Reference r)
overridevirtual

Returns a null string if the reference is resolved and a symbolic name if the reference is unresolved.

After the target of the reference exists in memory, the reference will be updated to point to the correct target.

Implements Model::PersistentStore.

◆ loadStringValue()

QString Model::PersistentStoreMock::loadStringValue ( )
overridevirtual

◆ loadSubNode()

Node * Model::PersistentStoreMock::loadSubNode ( Node parent,
const QString &  name,
bool  loadPartially 
)
overridevirtual

◆ loadTree()

Node * Model::PersistentStoreMock::loadTree ( TreeManager manager,
const QString &  name,
bool  loadPartially 
)
overrideprotectedvirtual

◆ saveDoubleValue()

void Model::PersistentStoreMock::saveDoubleValue ( double  value)
overridevirtual

◆ saveIntValue()

void Model::PersistentStoreMock::saveIntValue ( int  value)
overridevirtual

◆ saveNode()

void Model::PersistentStoreMock::saveNode ( const Node node,
const QString &  name 
)
overridevirtual

◆ saveReferenceValue()

void Model::PersistentStoreMock::saveReferenceValue ( const QString &  name,
const Node target 
)
overridevirtual

◆ saveStringValue()

void Model::PersistentStoreMock::saveStringValue ( const QString &  value)
overridevirtual

◆ saveTree()

void Model::PersistentStoreMock::saveTree ( TreeManager manager,
const QString &  name 
)
overrideprotectedvirtual

Member Data Documentation

◆ savedData

QString Model::PersistentStoreMock::savedData
private