#include <TdkProject.h>
Inheritance diagram for TdkProject:

| virtual void | loadChildren (TeDatabase *dbCaller, TdkLoadParams ¶ms) |
| TdkProject () | |
| Default constructor. | |
| TdkProject (const TdkObjectGID &objectGID) | |
| Default constructor. Using TdkObject. | |
| TdkProject (TdkProject &proj) | |
| Copy constructor. | |
| TdkProject (TdkObjectGID objectGID, std::string name, std::string desc) | |
| Basic constructor, only creates and sets attributes of the object. | |
| TdkProject (std::string name, std::string desc) | |
| Basic constructor, only creates and sets attributes of the object. | |
| virtual void | import (TdkObject &object) |
| virtual void | operator= (TdkObject &object) |
| virtual TdkObject * | copy () |
| Creates a copy of the object. | |
| virtual bool | isProjectView (TdkObjectGID &viewGID) |
| Returns TRUE if a view is part of a project and FALSE otherwise. | |
| virtual void | setCurrentViewGID (TdkObjectGID &viewGID) |
| Sets the index of the current map of the project (it must be one of the project's maps). | |
| virtual TdkObjectGID | getCurrentViewGID () |
| Returns a pointer to the current map of the project. | |
| virtual void | addViewGID (TdkObjectGID &viewGID) |
| Adds an existing view to the project. | |
| virtual TdkObjectGID | getViewGID (int index) |
| Returns a pointer to the i-th map of the project. | |
| virtual void | setDatabase (TeDatabase *db) |
| virtual void | reloadViews () |
| virtual void | updateView () |
| virtual void | fillThemeCollectionTables () |
| virtual std::string | getStringAttr (std::string attr_name) |
| Returns the value for the given attribute. The attribute type must be string. | |
| virtual void | setStringAttr (std::string attr_name, std::string value) |
| Sets the value for the given attribute. The attribute type must be string. | |
Protected Member Functions | |
| virtual bool | load (TeDatabase *dbCaller, TdkLoadParams ¶ms) |
| Updates the object in the database. | |
| virtual void | remove (TeDatabase *dbCaller) |
| virtual bool | insert (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
| Inserts the object in the database. | |
| virtual bool | update (TeDatabase *dbCaller, TdkPersistenceParams ¶ms) |
| Updates the object in the database. | |
Friends | |
| class | TeDatabase |
This class represents a project(a set of views) stored in a database.
| TdkProject::TdkProject | ( | ) |
Default constructor.
| TdkProject::TdkProject | ( | const TdkObjectGID & | objectGID | ) |
Default constructor. Using TdkObject.
| TdkProject::TdkProject | ( | TdkProject & | proj | ) |
Copy constructor.
| TdkProject::TdkProject | ( | TdkObjectGID | objectGID, | |
| std::string | name, | |||
| std::string | desc | |||
| ) |
Basic constructor, only creates and sets attributes of the object.
| TdkProject::TdkProject | ( | std::string | name, | |
| std::string | desc | |||
| ) |
Basic constructor, only creates and sets attributes of the object.
| bool TdkProject::load | ( | TeDatabase * | dbCaller, | |
| TdkLoadParams & | params | |||
| ) | [protected, virtual] |
Updates the object in the database.
@ name Database caller these methods are called by the database driver associated to the project.
Reimplemented from TdkObjectCollection.
| void TdkProject::remove | ( | TeDatabase * | dbCaller | ) | [protected, virtual] |
| bool TdkProject::insert | ( | TeDatabase * | dbCaller, | |
| TdkPersistenceParams & | params | |||
| ) | [protected, virtual] |
| bool TdkProject::update | ( | TeDatabase * | dbCaller, | |
| TdkPersistenceParams & | params | |||
| ) | [protected, virtual] |
| void TdkProject::loadChildren | ( | TeDatabase * | dbCaller, | |
| TdkLoadParams & | params | |||
| ) | [protected, virtual] |
Reimplemented from TdkObjectCollection.
| void TdkProject::import | ( | TdkObject & | object | ) | [virtual] |
Reimplemented from TdkObjectCollection.
| void TdkProject::operator= | ( | TdkObject & | object | ) | [virtual] |
Reimplemented from TdkObjectCollection.
| TdkObject * TdkProject::copy | ( | ) | [virtual] |
| bool TdkProject::isProjectView | ( | TdkObjectGID & | viewGID | ) | [virtual] |
Returns TRUE if a view is part of a project and FALSE otherwise.
| void TdkProject::setCurrentViewGID | ( | TdkObjectGID & | viewGID | ) | [virtual] |
Sets the index of the current map of the project (it must be one of the project's maps).
| TdkObjectGID TdkProject::getCurrentViewGID | ( | ) | [virtual] |
Returns a pointer to the current map of the project.
| void TdkProject::addViewGID | ( | TdkObjectGID & | viewGID | ) | [virtual] |
Adds an existing view to the project.
| TdkObjectGID TdkProject::getViewGID | ( | int | index | ) | [virtual] |
Returns a pointer to the i-th map of the project.
| void TdkProject::setDatabase | ( | TeDatabase * | db | ) | [virtual] |
Sets the vector of the maps identifiers in the project.
| void TdkProject::reloadViews | ( | ) | [virtual] |
Reloads all the maps from the database.
| void TdkProject::updateView | ( | ) | [virtual] |
Saves everything that was modified in the current map.
| void TdkProject::fillThemeCollectionTables | ( | ) | [virtual] |
Fills the collection table relative to the current view (not used by Tdk anymore).
| std::string TdkProject::getStringAttr | ( | std::string | attr_name | ) | [virtual] |
Returns the value for the given attribute. The attribute type must be string.
Reimplemented from TdkObjectCollection.
| void TdkProject::setStringAttr | ( | std::string | attr_name, | |
| std::string | value | |||
| ) | [virtual] |
Sets the value for the given attribute. The attribute type must be string.
Reimplemented from TdkObjectCollection.
friend class TeDatabase [friend] |
1.5.2