Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Static Private Attributes
Model::FileSystemEntry Class Reference
Inheritance diagram for Model::FileSystemEntry:
Core::Reflect< Base >

Public Member Functions

 FileSystemEntry (::Model::Node *parent, ::Model::AttributeChain &metaData)
 
 FileSystemEntry (::Model::Node *parent, ::Model::PersistentStore &store, bool loadPartially)
 
 FileSystemEntry (::Model::Node *parent, ::Model::PersistentStore &store, bool loadPartially, ::Model::AttributeChain &metaData)
 
 FileSystemEntry (::Model::Node *parent=nullptr)
 
 FileSystemEntry (const QString &name)
 
FileSystemEntryclone () const override
 
Listcontent () const
 
const QString & name () const
 
TextnameNode ()
 
void setContent (List *node)
 
void setName (const QString &val)
 
void setSubEntries (TypedList< FileSystemEntry > *node)
 
TypedList< FileSystemEntry > * subEntries () const
 

Static Public Member Functions

static FileSystemEntrycreateDefaultInstance (Node *parent=nullptr)
 
static ::Model::AttributeChaingetMetaData ()
 
static ::Model::CompositeIndex registerNewAttribute (const ::Model::Attribute &attribute)
 
static ::Model::CompositeIndex registerNewAttribute (const QString &attributeName, const QString &attributeType, bool canBePartiallyLoaded, bool isOptional, bool isPersistent)
 
template<typename T >
static void registerNewExtension ()
 

Protected Member Functions

virtual ::Model::AttributeChaintopLevelMeta () override
 

Static Private Member Functions

static ::Model::CompositeIndex addAttributeToInitialRegistrationList_ (::Model::CompositeIndex &index, const QString &attributeName, const QString &attributeType, bool canBePartiallyLoaded, bool isOptional, bool isPersistent)
 
static QList< QPair< ::Model::CompositeIndex &, ::Model::Attribute > > & attributesToRegisterAtInitialization_ ()
 

Static Private Attributes

::Model::CompositeIndex contentIndex = addAttributeToInitialRegistrationList_( contentIndex, "content", "List", false , false , true )
 
::Model::CompositeIndex nameIndex = addAttributeToInitialRegistrationList_( nameIndex, "name", "Text", false , false , true )
 
::Model::CompositeIndex subEntriesIndex = addAttributeToInitialRegistrationList_( subEntriesIndex, "subEntries", "TypedListOfFileSystemEntry", false , false , true )
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Constructor & Destructor Documentation

◆ FileSystemEntry() [1/5]

Model::FileSystemEntry::FileSystemEntry ( ::Model::Node parent = nullptr)

◆ FileSystemEntry() [2/5]

Model::FileSystemEntry::FileSystemEntry ( ::Model::Node parent,
::Model::PersistentStore store,
bool  loadPartially 
)

◆ FileSystemEntry() [3/5]

Model::FileSystemEntry::FileSystemEntry ( ::Model::Node parent,
::Model::AttributeChain metaData 
)

◆ FileSystemEntry() [4/5]

Model::FileSystemEntry::FileSystemEntry ( ::Model::Node parent,
::Model::PersistentStore store,
bool  loadPartially,
::Model::AttributeChain metaData 
)

◆ FileSystemEntry() [5/5]

Model::FileSystemEntry::FileSystemEntry ( const QString &  name)

Member Function Documentation

◆ addAttributeToInitialRegistrationList_()

Model::CompositeIndex Model::FileSystemEntry::addAttributeToInitialRegistrationList_ ( ::Model::CompositeIndex index,
const QString &  attributeName,
const QString &  attributeType,
bool  canBePartiallyLoaded,
bool  isOptional,
bool  isPersistent 
)
staticprivate

◆ attributesToRegisterAtInitialization_()

QList< QPair<::Model::CompositeIndex &,::Model::Attribute > > & Model::FileSystemEntry::attributesToRegisterAtInitialization_ ( )
staticprivate

◆ clone()

FileSystemEntry * Model::FileSystemEntry::clone ( ) const
override

◆ content()

List* Model::FileSystemEntry::content ( ) const
inline

◆ createDefaultInstance()

FileSystemEntry * Model::FileSystemEntry::createDefaultInstance ( Node parent = nullptr)
static

◆ getMetaData()

Model::AttributeChain & Model::FileSystemEntry::getMetaData ( )
static

◆ name()

const QString& Model::FileSystemEntry::name ( ) const
inline

◆ nameNode()

Text* Model::FileSystemEntry::nameNode ( )
inline

◆ registerNewAttribute() [1/2]

Model::CompositeIndex Model::FileSystemEntry::registerNewAttribute ( const ::Model::Attribute attribute)
static

◆ registerNewAttribute() [2/2]

Model::CompositeIndex Model::FileSystemEntry::registerNewAttribute ( const QString &  attributeName,
const QString &  attributeType,
bool  canBePartiallyLoaded,
bool  isOptional,
bool  isPersistent 
)
static

◆ registerNewExtension()

template<typename T >
static void Model::FileSystemEntry::registerNewExtension ( )
inlinestatic

◆ setContent()

void Model::FileSystemEntry::setContent ( List node)
inline

◆ setName()

void Model::FileSystemEntry::setName ( const QString &  val)
inline

◆ setSubEntries()

void Model::FileSystemEntry::setSubEntries ( TypedList< FileSystemEntry > *  node)
inline

◆ subEntries()

TypedList<FileSystemEntry>* Model::FileSystemEntry::subEntries ( ) const
inline

◆ topLevelMeta()

Model::AttributeChain & Model::FileSystemEntry::topLevelMeta ( )
overrideprotected

Member Data Documentation

◆ contentIndex

Model::CompositeIndex Model::FileSystemEntry::contentIndex = addAttributeToInitialRegistrationList_( contentIndex, "content", "List", false , false , true )
staticprivate

◆ nameIndex

Model::CompositeIndex Model::FileSystemEntry::nameIndex = addAttributeToInitialRegistrationList_( nameIndex, "name", "Text", false , false , true )
staticprivate

◆ subEntriesIndex

Model::CompositeIndex Model::FileSystemEntry::subEntriesIndex = addAttributeToInitialRegistrationList_( subEntriesIndex, "subEntries", "TypedListOfFileSystemEntry", false , false , true )
staticprivate