OpenStudio:model_editor
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
ProjectModel::Model Class Reference

#include <projectmodeldatabase.hpp>

+ Inheritance diagram for ProjectModel::Model:

Classes

class  AnalysesHandle
 
class  Own
 
class  ResultsHandle
 

Public Member Functions

Model::AnalysesHandle analyses ()
 
virtual void del ()
 
 Model (const litesql::Database &db)
 
 Model (const litesql::Database &db, const litesql::Record &rec)
 
 Model (const Model &obj)
 
const Modeloperator= (const Model &obj)
 
Model::ResultsHandle results ()
 
virtual bool typeIsCorrect ()
 
std::unique_ptr< Modelupcast ()
 
std::unique_ptr< ModelupcastCopy ()
 
virtual void update ()
 

Static Public Member Functions

static void getFieldTypes (std::vector< litesql::FieldType > &ftypes)
 

Public Attributes

litesql::Field< std::string > guid
 
litesql::Field< int > id
 
litesql::Field< std::string > name
 
litesql::Field< std::string > path
 
litesql::Field< std::string > type
 

Static Public Attributes

static const litesql::FieldType Guid
 
static const litesql::FieldType Id
 
static const litesql::FieldType Name
 
static const litesql::FieldType Path
 
static const std::string sequence__
 
static const std::string table__
 
static const litesql::FieldType Type
 
static const std::string type__
 

Protected Member Functions

virtual void addIDUpdates (Updates &updates)
 
virtual void addUpdates (Updates &updates)
 
void create ()
 
void defaults ()
 
virtual void delRecord ()
 
virtual void delRelations ()
 
std::string insert (litesql::Record &tables, litesql::Records &fieldRecs, litesql::Records &valueRecs)
 

Constructor & Destructor Documentation

ProjectModel::Model::Model ( const litesql::Database &  db)
ProjectModel::Model::Model ( const litesql::Database &  db,
const litesql::Record &  rec 
)
ProjectModel::Model::Model ( const Model obj)

Member Function Documentation

virtual void ProjectModel::Model::addIDUpdates ( Updates &  updates)
protectedvirtual
virtual void ProjectModel::Model::addUpdates ( Updates &  updates)
protectedvirtual
Model::AnalysesHandle ProjectModel::Model::analyses ( )
void ProjectModel::Model::create ( )
protected
void ProjectModel::Model::defaults ( )
protected
virtual void ProjectModel::Model::del ( )
virtual
virtual void ProjectModel::Model::delRecord ( )
protectedvirtual
virtual void ProjectModel::Model::delRelations ( )
protectedvirtual
static void ProjectModel::Model::getFieldTypes ( std::vector< litesql::FieldType > &  ftypes)
static
std::string ProjectModel::Model::insert ( litesql::Record &  tables,
litesql::Records &  fieldRecs,
litesql::Records &  valueRecs 
)
protected
const Model& ProjectModel::Model::operator= ( const Model obj)
Model::ResultsHandle ProjectModel::Model::results ( )
virtual bool ProjectModel::Model::typeIsCorrect ( )
virtual
std::unique_ptr<Model> ProjectModel::Model::upcast ( )
std::unique_ptr<Model> ProjectModel::Model::upcastCopy ( )
virtual void ProjectModel::Model::update ( )
virtual

Member Data Documentation

const litesql::FieldType ProjectModel::Model::Guid
static
litesql::Field<std::string> ProjectModel::Model::guid
const litesql::FieldType ProjectModel::Model::Id
static
litesql::Field<int> ProjectModel::Model::id
const litesql::FieldType ProjectModel::Model::Name
static
litesql::Field<std::string> ProjectModel::Model::name
const litesql::FieldType ProjectModel::Model::Path
static
litesql::Field<std::string> ProjectModel::Model::path
const std::string ProjectModel::Model::sequence__
static
const std::string ProjectModel::Model::table__
static
const litesql::FieldType ProjectModel::Model::Type
static
litesql::Field<std::string> ProjectModel::Model::type
const std::string ProjectModel::Model::type__
static