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

static te::da::DataSet* Utils::getDataSet ( te::da::DataSource dataSource,
std::string  dataSetName 
)
static
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
static 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.
static 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.
static std::string Utils::getIdxTypeName ( int  id)
static
static 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.
static 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.
static bool Utils::loadModules ( std::string &  errorMessage)
static

Load Terralib modules.

Parameters
errorMessageString that receive methods errors description
Returns
True if successfully

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