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

Public Member Functions

 SystemClipboard ()
 
virtual ~SystemClipboard ()
 
virtual SystemClipboardclone () const override
 Methods from Persistent Store. More...
 
virtual Model::Nodecreate (Model::TreeManager *manager, Model::Node *parent) override
 
Model::NodeIdType currentNodeID () const
 
virtual QString currentNodeType () const override
 
virtual bool hasNext () const override
 
virtual bool isLoadingPartially () const override
 
virtual QList< Model::LoadedNodeloadAllSubNodes (Model::Node *parent, const QSet< QString > &loadPartially) override
 
virtual double loadDoubleValue () override
 
virtual int loadIntValue () override
 
virtual QString loadReferenceValue (Model::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 Model::NodeloadSubNode (Model::Node *parent, const QString &name, bool loadPartially) override
 
virtual void next () override
 
virtual int numNodes () const override
 
virtual void putNode (const Model::Node *node) override
 Methods from ClipboardStore. More...
 
virtual void putNodes (const QList< const Model::Node * > &nodes) override
 
virtual bool readClipboard () override
 
virtual void saveDoubleValue (double value) override
 
virtual void saveIntValue (int value) override
 
virtual void saveNode (const Model::Node *node, const QString &name) override
 
virtual void saveReferenceValue (const QString &name, const Model::Node *target) override
 
virtual void saveStringValue (const QString &value) override
 
- Public Member Functions inherited from Model::ClipboardStore
virtual ~ClipboardStore ()
 
- Public Member Functions inherited from Model::PersistentStore
virtual ~PersistentStore ()
 

Protected Member Functions

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

Private Member Functions

Model::LoadedNode loadNode (Model::Node *parent)
 

Private Attributes

Model::TreeManagermanager_ {}
 
int numNodes_
 
XMLModelxml
 

Static Private Attributes

static const QString NULL_STRING = "____NULL____"
 

Constructor & Destructor Documentation

◆ SystemClipboard()

FilePersistence::SystemClipboard::SystemClipboard ( )

◆ ~SystemClipboard()

FilePersistence::SystemClipboard::~SystemClipboard ( )
virtual

Member Function Documentation

◆ clone()

SystemClipboard * FilePersistence::SystemClipboard::clone ( ) const
overridevirtual

Methods from Persistent Store.

Implements Model::PersistentStore.

◆ create()

Node * FilePersistence::SystemClipboard::create ( Model::TreeManager manager,
Model::Node parent 
)
overridevirtual

Implements Model::ClipboardStore.

◆ currentNodeID()

Model::NodeIdType FilePersistence::SystemClipboard::currentNodeID ( ) const

◆ currentNodeType()

QString FilePersistence::SystemClipboard::currentNodeType ( ) const
overridevirtual

◆ hasNext()

bool FilePersistence::SystemClipboard::hasNext ( ) const
overridevirtual

Implements Model::ClipboardStore.

◆ isLoadingPartially()

bool FilePersistence::SystemClipboard::isLoadingPartially ( ) const
overridevirtual

◆ loadAllSubNodes()

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

◆ loadDoubleValue()

double FilePersistence::SystemClipboard::loadDoubleValue ( )
overridevirtual

◆ loadIntValue()

int FilePersistence::SystemClipboard::loadIntValue ( )
overridevirtual

◆ loadNode()

LoadedNode FilePersistence::SystemClipboard::loadNode ( Model::Node parent)
private

◆ loadReferenceValue()

QString FilePersistence::SystemClipboard::loadReferenceValue ( Model::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 FilePersistence::SystemClipboard::loadStringValue ( )
overridevirtual

◆ loadSubNode()

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

◆ loadTree()

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

◆ next()

void FilePersistence::SystemClipboard::next ( )
overridevirtual

Implements Model::ClipboardStore.

◆ numNodes()

int FilePersistence::SystemClipboard::numNodes ( ) const
overridevirtual

Implements Model::ClipboardStore.

◆ putNode()

void FilePersistence::SystemClipboard::putNode ( const Model::Node node)
overridevirtual

Methods from ClipboardStore.

Implements Model::ClipboardStore.

◆ putNodes()

void FilePersistence::SystemClipboard::putNodes ( const QList< const Model::Node * > &  nodes)
overridevirtual

Implements Model::ClipboardStore.

◆ readClipboard()

bool FilePersistence::SystemClipboard::readClipboard ( )
overridevirtual

Implements Model::ClipboardStore.

◆ saveDoubleValue()

void FilePersistence::SystemClipboard::saveDoubleValue ( double  value)
overridevirtual

◆ saveIntValue()

void FilePersistence::SystemClipboard::saveIntValue ( int  value)
overridevirtual

◆ saveNode()

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

◆ saveReferenceValue()

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

◆ saveStringValue()

void FilePersistence::SystemClipboard::saveStringValue ( const QString &  value)
overridevirtual

◆ saveTree()

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

Member Data Documentation

◆ manager_

Model::TreeManager* FilePersistence::SystemClipboard::manager_ {}
private

◆ NULL_STRING

const QString FilePersistence::SystemClipboard::NULL_STRING = "____NULL____"
staticprivate

◆ numNodes_

int FilePersistence::SystemClipboard::numNodes_
private

◆ xml

XMLModel* FilePersistence::SystemClipboard::xml
private