| TerraLib 4.1

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

Functions
Utilitary functions

## Functions

TLUTILS_DLL bool | TeCopyDatabase (TeDatabase *dbFrom, TeDatabase *dbTo)
TLUTILS_DLL bool | isTerralibModel (TeDatabase *db)
TLUTILS_DLL vector< string > | generateItemsInClauseVec (TeTheme *theme, string &where)
TLUTILS_DLL map< string, vector< string > > | getObject2ItemsMap (TeTheme *theme, vector< string > &itens)
template<typename Iterator >
vector< string > | generateItemsInClauses (Iterator &begin, Iterator &end, TeTheme *theme)
TLUTILS_DLL bool | loadViewSetAndThemeGroups (TeDatabase *db, const std::string &userName)
TLUTILS_DLL bool | TeCopyView (TeView *view, TeDatabase *inputDatabase, const std::string &newViewName, const std::string &newViewUser, const std::set< int > &setThemeIds, TeDatabase *outputDatabase, std::vector< bool > &vecResult)
TLUTILS_DLL TeViewNode * | TeCopyViewNode (TeViewNode *node, TeDatabase *inputDatabase, TeDatabase *outputDatabase, TeView *newView)
TLUTILS_DLL bool | TeCopyTable (TeDatabase *inputDatabase, const std::string &inputTable, TeDatabase *outputDatabase, const std::string &outputTable)

## Detailed Description

A set of utilitary functions

## Function Documentation

template<typename Iterator >

vector<string> generateItemsInClauses | ( | Iterator & | begin,
|  | Iterator & | end,
|  | TeTheme * | theme
| ) |  |

TLUTILS_DLL vector<string> generateItemsInClauseVec | ( | TeTheme * | theme,
|  | string & | where
| ) |  |

TLUTILS_DLL map<string, vector<string> > getObject2ItemsMap | ( | TeTheme * | theme,
|  | vector< string > & | itens
| ) |  |

TLUTILS_DLL bool isTerralibModel | ( | TeDatabase * | db | ) |

Returns true whether a database contains the TerraLib data model

Parameters:

  db | pointer do a TerraLib database

TLUTILS_DLL bool loadViewSetAndThemeGroups | ( | TeDatabase * | db,
|  | const std::string & | userName
| ) |  |

TLUTILS_DLL bool TeCopyDatabase | ( | TeDatabase * | dbFrom,
|  | TeDatabase * | dbTo
| ) |  |

This function copies the contents of a TerraLib database to another TerraLib database

Parameters:

  dbFrom | A pointer to the source database
  dbTo | A pointer to the destination database

TLUTILS_DLL bool TeCopyTable | ( | TeDatabase * | inputDatabase,
|  | const std::string & | inputTable,
|  | TeDatabase * | outputDatabase,
|  | const std::string & | outputTable
| ) |  |

TLUTILS_DLL bool TeCopyView | ( | TeView * | view,
|  | TeDatabase * | inputDatabase,
|  | const std::string & | newViewName,
|  | const std::string & | newViewUser,
|  | const std::set< int > & | setThemeIds,
|  | TeDatabase * | outputDatabase,
|  | std::vector< bool > & | vecResult
| ) |  |

TLUTILS_DLL TeViewNode* TeCopyViewNode | ( | TeViewNode * | node,
|  | TeDatabase * | inputDatabase,
|  | TeDatabase * | outputDatabase,
|  | TeView * | newView
| ) |  |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines