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

Public Types

enum  Option { None = 0 , PrintMethodBody = 0x1 , PrintMethodBodyIfNotEmpty = 0x2 , PrintMethodBodyInline = 0x4 , PrintExternKeyword = 0x8 , PrintDefaultArgumentValues = 0x10 , PrintTemplatePrefix = 0x20 , PrintDeclarationCommentWithMethodBody = 0x40 , NoApiInclude = 0x80 , IsHeaderPart = 0x100 , IsTemplateImplementationSeparateFile = 0x200 , XMacro = 0x400 }
 
using Options = QFlags< Option >
 

Public Member Functions

 CppPrintContext (Model::Node *context)
 
 CppPrintContext (Model::Node *context, Options options)
 
OOModel::Declarationdeclaration ()
 
bool hasOption (Option option)
 
bool isClass ()
 
Options options ()
 

Static Public Member Functions

static bool isValidPrintContext (Model::Node *context)
 

Private Attributes

Options options_ {}
 

Additional Inherited Members

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

Member Typedef Documentation

◆ Options

Member Enumeration Documentation

◆ Option

Enumerator
None 
PrintMethodBody 
PrintMethodBodyIfNotEmpty 
PrintMethodBodyInline 
PrintExternKeyword 
PrintDefaultArgumentValues 
PrintTemplatePrefix 
PrintDeclarationCommentWithMethodBody 
NoApiInclude 
IsHeaderPart 
IsTemplateImplementationSeparateFile 
XMacro 

Constructor & Destructor Documentation

◆ CppPrintContext() [1/2]

CppExport::CppPrintContext::CppPrintContext ( Model::Node context)
inline

◆ CppPrintContext() [2/2]

CppExport::CppPrintContext::CppPrintContext ( Model::Node context,
Options  options 
)
inline

Member Function Documentation

◆ declaration()

OOModel::Declaration* CppExport::CppPrintContext::declaration ( )
inline

◆ hasOption()

bool CppExport::CppPrintContext::hasOption ( Option  option)
inline

◆ isClass()

bool CppExport::CppPrintContext::isClass ( )
inline

◆ isValidPrintContext()

static bool CppExport::CppPrintContext::isValidPrintContext ( Model::Node context)
inlinestatic

◆ options()

CppPrintContext::Options CppExport::CppPrintContext::options ( )
inline

Member Data Documentation

◆ options_

Options CppExport::CppPrintContext::options_ {}
private