All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Utils Class Reference

Class with help methods for the application. More...

#include <Utils.h>

Static Public Member Functions

static te::da::DataSetgetDataSet (te::da::DataSource *dataSource, std::string dataSetName)
 
static bool getDataSource (std::string dsType, std::string connStr, te::da::DataSource *&dataSource, std::string &errorMessage)
 Method to connect with a Data Source. More...
 
static std::vector< std::string > getFKPropertiesNames (te::da::ForeignKey *fk)
 Getting Foreign Key Properties Names. More...
 
static std::vector< std::string > getIdxPropertiesNames (te::da::Index *idx)
 Getting Index Properties Names. More...
 
static std::string getIdxTypeName (int id)
 
static std::vector< std::string > getPKPropertiesNames (te::da::PrimaryKey *pk)
 Getting Primary Key Properties Names. More...
 
static std::vector< std::string > getUKPropertiesNames (te::da::UniqueKey *uk)
 Getting Unique Key Properties Names. More...
 
static bool loadModules (std::string &errorMessage)
 Load Terralib modules. More...
 

Detailed Description

Class with help methods for the application.

Definition at line 44 of file Utils.h.

Member Function Documentation

te::da::DataSet * Utils::getDataSet ( te::da::DataSource dataSource,
std::string  dataSetName 
)
static
bool Utils::getDataSource ( std::string  dsType,
std::string  connStr,
te::da::DataSource *&  dataSource,
std::string &  errorMessage 
)
static

Method to connect with a Data Source.

Parameters
dsTypeDataq Source Type
dataSourceReturn DataSource
errorMessageString that receive methods errors description
Returns
True if successfully

Definition at line 4 of file Utils.cpp.

References te::da::DataSourceFactory::make(), and te::da::DataSource::open().

Referenced by DSInfo::init().

std::vector< std::string > Utils::getFKPropertiesNames ( te::da::ForeignKey fk)
static

Getting Foreign Key Properties Names.

Parameters
fkForeign Key target
Returns
String vector with the Foreign Key properties names.

Definition at line 55 of file Utils.cpp.

References te::da::ForeignKey::getProperties().

Referenced by DSInfo::getForeignKeyInfo().

std::vector< std::string > Utils::getIdxPropertiesNames ( te::da::Index idx)
static

Getting Index Properties Names.

Parameters
idxIndex Key target
Returns
String vector with the Index properties names.

Definition at line 83 of file Utils.cpp.

References te::da::Index::getProperties().

Referenced by DSInfo::getIndexesKeyInfo().

std::string Utils::getIdxTypeName ( int  id)
static

Definition at line 27 of file Utils.cpp.

Referenced by DSInfo::getIndexesKeyInfo().

std::vector< std::string > Utils::getPKPropertiesNames ( te::da::PrimaryKey pk)
static

Getting Primary Key Properties Names.

Parameters
pkPrimary Key target
Returns
String vector with the Primary Key properties names.

Definition at line 41 of file Utils.cpp.

References te::da::PrimaryKey::getProperties().

Referenced by DSInfo::getPrimaryKeyInfo().

std::vector< std::string > Utils::getUKPropertiesNames ( te::da::UniqueKey uk)
static

Getting Unique Key Properties Names.

Parameters
ukUnique Key target
Returns
String vector with the Unique Key properties names.

Definition at line 69 of file Utils.cpp.

References te::da::UniqueKey::getProperties().

Referenced by DSInfo::getUniqueKeyInfo().

bool Utils::loadModules ( std::string &  errorMessage)
static

Load Terralib modules.

Parameters
errorMessageString that receive methods errors description
Returns
True if successfully

Definition at line 110 of file Utils.cpp.

References te::common::Singleton< PluginManager >::getInstance(), te::plugin::PluginInfo::m_description, and te::plugin::PluginInfo::m_name.

Referenced by DSInfo::getDataSourceParameters(), and DSInfo::init().


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