NCL Composer  0.1.5
 All Classes Functions Variables Pages
composer::language::NCLStructure Class Reference

Class that keep information about the language description. More...

#include <NCLStructure.h>

Collaboration diagram for composer::language::NCLStructure:

Public Member Functions

void loadStructure ()
 
void clear ()
 
void addElement (QString name, QString father, char cardinality, bool define_scope=false)
 
void addAttribute (QString element, QString attr, QString type, bool required)
 
void addReference (QString element, QString attr, QString ref_element, QString ref_attr, QString scope)
 
void addDatatype (QString datatype, QString regex)
 
void addDatatypeDefaultSuggestions (QString datatype, QString values)
 
QStringList getDatatypeDefaultSuggestions (QString datatype)
 
map< QString, map< QString,
char > * > * 
getNesting ()
 
map< QString, bool > * getAttributes (QString element)
 
deque< QString > * getAttributesOrdered (QString element)
 
map< QString, char > * getChildren (QString tagname)
 
vector< AttributeReferences * > getReferences (QString element, QString attr)
 
QString getAttributeDatatype (QString element, QString name)
 
bool defineScope (QString tagname)
 

Detailed Description

Class that keep information about the language description.

Definition at line 37 of file NCLStructure.h.

Member Function Documentation

void composer::language::NCLStructure::addAttribute ( QString  element,
QString  attr,
QString  type,
bool  required 
)
Parameters
element
attr
type
required

Definition at line 244 of file NCLStructure.cpp.

void composer::language::NCLStructure::addElement ( QString  name,
QString  father,
char  cardinality,
bool  define_scope = false 
)
Parameters
name
father
cardinality

Definition at line 225 of file NCLStructure.cpp.

void composer::language::NCLStructure::addReference ( QString  element,
QString  attr,
QString  ref_element,
QString  ref_attr,
QString  scope 
)
Parameters
element
attr
ref_element
ref_attr
scope

Definition at line 262 of file NCLStructure.cpp.

map< QString, bool > * composer::language::NCLStructure::getAttributes ( QString  element)
Parameters
element
Returns
map<QString, bool>

Definition at line 308 of file NCLStructure.cpp.

Here is the caller graph for this function:

deque< QString > * composer::language::NCLStructure::getAttributesOrdered ( QString  element)
Parameters
element
Returns
deque<QString>

Definition at line 315 of file NCLStructure.cpp.

Here is the caller graph for this function:

map< QString, char > * composer::language::NCLStructure::getChildren ( QString  tagname)
Parameters
tagname
Returns
map<QString, char>

Definition at line 327 of file NCLStructure.cpp.

Here is the caller graph for this function:

map< QString, map< QString, char > * > * composer::language::NCLStructure::getNesting ( )
Returns
map<QString, map<QString, char> *>

Definition at line 322 of file NCLStructure.cpp.

vector< AttributeReferences * > composer::language::NCLStructure::getReferences ( QString  element,
QString  attr 
)
Parameters
element
attr
Returns
vector<AttributeReferences *>

Definition at line 334 of file NCLStructure.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: