Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
Export::SourceFile Class Reference

Public Member Functions

 SourceFile (SourceDir *parent, const QString &name)
 
 ~SourceFile ()
 
TextFragmentappend (Model::Node *node, const QString &text)
 
template<typename T >
T * append (T *fragment)
 
QList< SourceFragment * > fragments ()
 
const QString & name () const
 
QString path () const
 Returns the relative path of this file including the name at the end. More...
 

Private Attributes

QList< SourceFragment * > fragments_
 
QString name_
 
SourceDirparent_ {}
 

Constructor & Destructor Documentation

◆ SourceFile()

Export::SourceFile::SourceFile ( SourceDir parent,
const QString &  name 
)

◆ ~SourceFile()

Export::SourceFile::~SourceFile ( )

Member Function Documentation

◆ append() [1/2]

TextFragment * Export::SourceFile::append ( Model::Node node,
const QString &  text 
)
inline

◆ append() [2/2]

template<typename T >
T * Export::SourceFile::append ( T *  fragment)
inline

◆ fragments()

QList< SourceFragment * > Export::SourceFile::fragments ( )
inline

◆ name()

const QString & Export::SourceFile::name ( ) const
inline

◆ path()

QString Export::SourceFile::path ( ) const

Returns the relative path of this file including the name at the end.

Member Data Documentation

◆ fragments_

QList<SourceFragment*> Export::SourceFile::fragments_
private

◆ name_

QString Export::SourceFile::name_
private

◆ parent_

SourceDir* Export::SourceFile::parent_ {}
private