Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Protected Member Functions | Friends
Model::PersistentStore Class Referenceabstract
Inheritance diagram for Model::PersistentStore:
FilePersistence::SimpleTextFileStore Model::ClipboardStore Model::PersistentStoreMock FilePersistence::SystemClipboard

Public Member Functions

virtual ~PersistentStore ()
 
virtual PersistentStoreclone () const =0
 
virtual QString currentNodeType () const =0
 
virtual bool isLoadingPartially () const =0
 
virtual QList< LoadedNodeloadAllSubNodes (Node *parent, const QSet< QString > &loadPartially)=0
 
virtual double loadDoubleValue ()=0
 
virtual int loadIntValue ()=0
 
virtual QString loadReferenceValue (Reference *r)=0
 Returns a null string if the reference is resolved and a symbolic name if the reference is unresolved. More...
 
virtual QString loadStringValue ()=0
 
virtual NodeloadSubNode (Node *parent, const QString &name, bool loadPartially)=0
 
virtual void saveDoubleValue (double value)=0
 
virtual void saveIntValue (int value)=0
 
virtual void saveNode (const Node *node, const QString &name)=0
 
virtual void saveReferenceValue (const QString &name, const Node *target)=0
 
virtual void saveStringValue (const QString &value)=0
 

Protected Member Functions

virtual NodeloadTree (TreeManager *manager, const QString &name, bool loadPartially)=0
 
virtual void saveTree (TreeManager *manager, const QString &name)=0
 
void setReferenceTargetr (Reference *r, Node *target)
 

Friends

class TreeManager
 

Constructor & Destructor Documentation

◆ ~PersistentStore()

Model::PersistentStore::~PersistentStore ( )
virtual

Member Function Documentation

◆ clone()

virtual PersistentStore* Model::PersistentStore::clone ( ) const
pure virtual

◆ currentNodeType()

virtual QString Model::PersistentStore::currentNodeType ( ) const
pure virtual

◆ isLoadingPartially()

virtual bool Model::PersistentStore::isLoadingPartially ( ) const
pure virtual

◆ loadAllSubNodes()

virtual QList<LoadedNode> Model::PersistentStore::loadAllSubNodes ( Node parent,
const QSet< QString > &  loadPartially 
)
pure virtual

◆ loadDoubleValue()

virtual double Model::PersistentStore::loadDoubleValue ( )
pure virtual

◆ loadIntValue()

virtual int Model::PersistentStore::loadIntValue ( )
pure virtual

◆ loadReferenceValue()

virtual QString Model::PersistentStore::loadReferenceValue ( Reference r)
pure virtual

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.

Implemented in Model::PersistentStoreMock, FilePersistence::SystemClipboard, and FilePersistence::SimpleTextFileStore.

◆ loadStringValue()

virtual QString Model::PersistentStore::loadStringValue ( )
pure virtual

◆ loadSubNode()

virtual Node* Model::PersistentStore::loadSubNode ( Node parent,
const QString &  name,
bool  loadPartially 
)
pure virtual

◆ loadTree()

virtual Node* Model::PersistentStore::loadTree ( TreeManager manager,
const QString &  name,
bool  loadPartially 
)
protectedpure virtual

◆ saveDoubleValue()

virtual void Model::PersistentStore::saveDoubleValue ( double  value)
pure virtual

◆ saveIntValue()

virtual void Model::PersistentStore::saveIntValue ( int  value)
pure virtual

◆ saveNode()

virtual void Model::PersistentStore::saveNode ( const Node node,
const QString &  name 
)
pure virtual

◆ saveReferenceValue()

virtual void Model::PersistentStore::saveReferenceValue ( const QString &  name,
const Node target 
)
pure virtual

◆ saveStringValue()

virtual void Model::PersistentStore::saveStringValue ( const QString &  value)
pure virtual

◆ saveTree()

virtual void Model::PersistentStore::saveTree ( TreeManager manager,
const QString &  name 
)
protectedpure virtual

◆ setReferenceTargetr()

void Model::PersistentStore::setReferenceTargetr ( Reference r,
Node target 
)
protected

Friends And Related Function Documentation

◆ TreeManager

friend class TreeManager
friend