WORM 0.2
A C++ DAL/ORM code generation framework
|
#include <wormcodetemplate.h>
Public Types | |
enum | Type { Unknown, ClassDeclarationBase, ClassDefinitionBase, ClassDeclaration, ClassDefinition, EditViewDeclarationBase, EditViewDeclaration, EditViewDefinitionBase, EditViewDefinition, ListViewDeclarationBase, ListViewDeclaration, ListViewDefinitionBase, ListViewDefinition } |
Public Member Functions | |
WormCodeTemplate () | |
WormCodeTemplate (const WormCodeTemplate &other) | |
virtual | ~WormCodeTemplate () |
virtual WormCodeTemplate & | operator= (const WormCodeTemplate &other) |
virtual bool | operator== (const WormCodeTemplate &other) const |
const Type & | type () const |
const std::string & | uri () |
const std::string & | content () const |
void | setContent (const std::string content) |
void | setType (Type t) |
void | setUri (const std::string &uri) |
Set the URI or filename containing the template. |
Definition at line 26 of file wormcodetemplate.h.
Definition at line 30 of file wormcodetemplate.h.
WSql::WormCodeTemplate::WormCodeTemplate | ( | ) |
Definition at line 24 of file wormcodetemplate.cpp.
WSql::WormCodeTemplate::WormCodeTemplate | ( | const WormCodeTemplate & | other | ) |
Definition at line 29 of file wormcodetemplate.cpp.
WSql::WormCodeTemplate::~WormCodeTemplate | ( | ) | [virtual] |
Definition at line 36 of file wormcodetemplate.cpp.
const std::string& WSql::WormCodeTemplate::content | ( | ) | const [inline] |
Definition at line 54 of file wormcodetemplate.h.
WormCodeTemplate & WSql::WormCodeTemplate::operator= | ( | const WormCodeTemplate & | other | ) | [virtual] |
Definition at line 41 of file wormcodetemplate.cpp.
bool WSql::WormCodeTemplate::operator== | ( | const WormCodeTemplate & | other | ) | const [virtual] |
Definition at line 49 of file wormcodetemplate.cpp.
void WSql::WormCodeTemplate::setContent | ( | const std::string | content | ) | [inline] |
Definition at line 55 of file wormcodetemplate.h.
void WSql::WormCodeTemplate::setType | ( | Type | t | ) | [inline] |
Definition at line 56 of file wormcodetemplate.h.
void WSql::WormCodeTemplate::setUri | ( | const std::string & | uri | ) |
Set the URI or filename containing the template.
This sets the URI for the template - it also sets the Type of this template from the filename.
std::string | uri - the location of the template file |
Definition at line 63 of file wormcodetemplate.cpp.
const Type& WSql::WormCodeTemplate::type | ( | ) | const [inline] |
Definition at line 52 of file wormcodetemplate.h.
const std::string& WSql::WormCodeTemplate::uri | ( | ) | [inline] |
Definition at line 53 of file wormcodetemplate.h.