23 #include "../../dataaccess/datasource/DataSourceInfo.h" 
   24 #include "../../dataaccess/datasource/DataSourceInfoManager.h" 
   25 #include "../../maptools/DataSetLayer.h" 
   29 #include <QtCore/QUrl> 
   40         std::list<te::map::AbstractLayerPtr> ls = p->
getTopLayers();
 
   41         std::list<te::map::AbstractLayerPtr>::iterator it;
 
   43         for(it = ls.begin(); it != ls.end(); ++it)
 
   54         std::list<te::common::TreeItemPtr> ls = l->
getChildren();
 
   55         std::list<te::common::TreeItemPtr>::iterator it;
 
   57         if(l->
getType() == 
"DATASETLAYER")
 
   64         for(it = ls.begin(); it != ls.end(); ++it)
 
   65           format(dynamic_cast<te::map::AbstractLayer*>((*it).get()), encode);
 
   73         std::map<std::string, std::string>& i = d->
getConnInfo();
 
   74         std::map<std::string, std::string>::iterator it = i.find(
"SOURCE");
 
   77           it->second = 
format(it->second, encode);
 
   82           it->second = 
format(it->second, encode);
 
   91         for(it = beg; it != end; ++it)
 
   98               QUrl::toPercentEncoding(s.c_str()).data() :
 
   99               QUrl::fromPercentEncoding(QByteArray(s.c_str())).toStdString();
 
virtual const std::string & getType() const =0
It returns the layer type. 
 
std::map< std::string, DataSourceInfoPtr >::iterator iterator
 
const std::list< TreeItemPtr > & getChildren() const 
It returns the children of this tree item. 
 
const std::string & getTitle() const 
It gets the title of the project. 
 
void setDescription(const std::string &d)
 
const std::string & getDataSetName() const 
 
This is the base class for layers. 
 
virtual const std::string & getTitle() const 
It returns the layer title. 
 
void setDataSetName(const std::string &name)
 
This class models the concept of a project for the TerraLib Application Framework. 
 
const std::string & getDescription() const 
 
const std::map< std::string, std::string > & getConnInfo() const 
 
virtual void setTitle(const std::string &title)
It sets the layer title. 
 
const std::list< te::map::AbstractLayerPtr > & getTopLayers() const 
It gets all the top layers of the project (folder and single layers). 
 
const std::string & getTitle() const 
 
std::string encode(const traits &ts, const std::string &comp)
Encode the URI (sub) component. 
 
static DataSourceInfoManager & getInstance()
It returns a reference to the singleton instance. 
 
void setTitle(const std::string &title)
It sets the title of the project. 
 
void setAuthor(const std::string &author)
It sets the author of the project. 
 
const std::string & getAuthor() const 
It gets the author of the project. 
 
This class models the concept of a project for the TerraLib Application Framework. 
 
A class that represents a data source component. 
 
A layer with reference to a dataset. 
 
void setTitle(const std::string &title)