| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TeProject Class Reference

`#include <TeProject.h>`

List of all members.

## Public Member Functions

| TeProject ()
| Empty constructor.
| TeProject (int id, TeDatabase *db)
| Constructor from a identifier.
| TeProject (const string &name, TeDatabase *db)
| Constructor from a name.
| TeProject (const TeProject &other)
| Copy Constructor.
TeProject & | operator= (const TeProject &other)
| Operator =.
virtual | ~TeProject ()
| Destructor.
virtual void | setId (int id)
| Sets the project name.
virtual int | id ()
| Returns the project name.
virtual void | setName (const string &name)
| Sets the project name.
virtual string | name ()
| Returns the project name.
virtual string | description ()
| Returns the project description.
virtual void | setDescription (const string &desc)
| Sets the project description.
virtual void | setDatabase (TeDatabase *db)
| Sets the project database.
virtual TeDatabase * | getDatabase ()
| Gets the project database.
virtual bool | isProjectView (int viewId)
| Returns TRUE if a view is part of a project and FALSE otherwise.
virtual bool | hasCurrentView ()
| Returns TRUE if a project has a current view and FALSE otherwise.
virtual void | setCurrentViewId (int viewId)
| Sets the id of the current view in the project.
virtual int | getCurrentViewId ()
| Returns the id of the current view in the project.
virtual void | setCurrentViewIndex (int index)
| Sets the index in the list of the current view in the project.
virtual int | getCurrentViewIndex ()
| Returns position of the current view in the project.
const TeViewVector & | getViewVector () const
| Returns a reference to the project list of views.
virtual TeViewNameVector | getViewNameVector ()
| Returns the names of the views in the project.
virtual int | getViewId (int index)
| Returns the id of the index-th view of the project.
virtual int | insertView (string name, TeProjection *projection=NULL)
| Creates a new view in the project and persists it in the database.
virtual int | insertViewRel (int viewId)
| Adds a new view relation with the project and persists it in the database.
virtual int | addView (int viewId)
| Adds an view id to the views project vector.
virtual void | deleteView (int viewId, const bool &removeFromDatabase=true)
| Removes a view from the project (and also from the database)
virtual void | clearViews ()
| Clear the project.

## Detailed Description

This class represents a project concept. A project is a collection of views kept in a ordered list. A project might have the information about the current view.

## Constructor & Destructor Documentation

TeProject::TeProject | ( |  | ) |

Empty constructor.

TeProject::TeProject | ( | int | id,
|  | TeDatabase * | db
| ) |  |

Constructor from a identifier.

TeProject::TeProject | ( | const string & | name,
|  | TeDatabase * | db
| ) |  |

Constructor from a name.

TeProject::TeProject | ( | const TeProject & | other | ) |

Copy Constructor.

TeProject::~TeProject | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

int TeProject::addView | ( | int | viewId | ) | `[virtual]`

Adds an view id to the views project vector.

void TeProject::clearViews | ( |  | ) | `[virtual]`

Clear the project.

void TeProject::deleteView | ( | int | viewId,
|  | const bool & | removeFromDatabase = `true`
| ) |  | `[virtual]`

Removes a view from the project (and also from the database)

virtual string TeProject::description | ( |  | ) | `[inline, virtual]`

Returns the project description.

int TeProject::getCurrentViewId | ( |  | ) | `[virtual]`

Returns the id of the current view in the project.

virtual int TeProject::getCurrentViewIndex | ( |  | ) | `[inline, virtual]`

Returns position of the current view in the project.

virtual TeDatabase* TeProject::getDatabase | ( |  | ) | `[inline, virtual]`

Gets the project database.

int TeProject::getViewId | ( | int | index | ) | `[virtual]`

Returns the id of the index-th view of the project.

TeViewNameVector TeProject::getViewNameVector | ( |  | ) | `[virtual]`

Returns the names of the views in the project.

const TeViewVector& TeProject::getViewVector | ( |  | ) | const`[inline]`

Returns a reference to the project list of views.

bool TeProject::hasCurrentView | ( |  | ) | `[virtual]`

Returns TRUE if a project has a current view and FALSE otherwise.

virtual int TeProject::id | ( |  | ) | `[inline, virtual]`

Returns the project name.

int TeProject::insertView | ( | string | name,
|  | TeProjection * | projection = `NULL`
| ) |  | `[virtual]`

Creates a new view in the project and persists it in the database.

int TeProject::insertViewRel | ( | int | viewId | ) | `[virtual]`

Adds a new view relation with the project and persists it in the database.

bool TeProject::isProjectView | ( | int | viewId | ) | `[virtual]`

Returns TRUE if a view is part of a project and FALSE otherwise.

virtual string TeProject::name | ( |  | ) | `[inline, virtual]`

Returns the project name.

TeProject & TeProject::operator= | ( | const TeProject & | other | ) |

Operator =.

void TeProject::setCurrentViewId | ( | int | viewId | ) | `[virtual]`

Sets the id of the current view in the project.

virtual void TeProject::setCurrentViewIndex | ( | int | index | ) | `[inline, virtual]`

Sets the index in the list of the current view in the project.

virtual void TeProject::setDatabase | ( | TeDatabase * | db | ) | `[inline, virtual]`

Sets the project database.

virtual void TeProject::setDescription | ( | const string & | desc | ) | `[inline, virtual]`

Sets the project description.

virtual void TeProject::setId | ( | int | id | ) | `[inline, virtual]`

Sets the project name.

virtual void TeProject::setName | ( | const string & | name | ) | `[inline, virtual]`

Sets the project name.

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeProject.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeProject.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines