Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ilwis::CatalogView Class Reference

#include <catalogview.h>

Inheritance diagram for Ilwis::CatalogView:
Ilwis::Identity

Public Member Functions

 CatalogView (QObject *parent=0)
 
 CatalogView (const CatalogView &cat)
 
std::vector< Resourceitems () const
 
virtual bool prepare (const QUrl &resource, const QString &filter="")
 
QString type () const
 
bool isValid () const
 
QUrl parentCatalogView () const
 
void setParentCatalogView (const QUrl &url)
 
- Public Member Functions inherited from Ilwis::Identity
virtual void setCode (const QString &code)
 sets the code for this instance More...
 
QString code () const
 code returns the code of the identity. If no code is attached it will return sUNDEF ("?"). More...
 
quint64 id () const
 id returns a unsigned 64-bit number unique for the objects using the identity More...
 
virtual QString name () const
 name returns the name of an object. All objects have names though names need not to be unique More...
 
void setName (const QString &n)
 setName sets the name of an object. All objects have names though names need not to be unique More...
 
virtual QString description () const
 
void setDescription (const QString &desc)
 

Protected Member Functions

bool fillCatalog ()
 
- Protected Member Functions inherited from Ilwis::Identity
 Identity (const QString &name, qint64 id=i64UNDEF, const QString &cde=sUNDEF, const QString &descr=sUNDEF)
 
void prepare (quint64 base=0)
 
void setId (quint64 newid)
 

Protected Attributes

QString _filter
 
QUrl _location
 
QUrl _parent
 

Detailed Description

The catalog class represents a view on the master-catalog. A catalog query on the master-catalog results in a catalog. The catalog it self doesnt contain any resources. The moment you request which resources are in the the catalog, it queries the master-catalog. This means that your view is always upto-date with what the master-catalog knows

Constructor & Destructor Documentation

CatalogView::CatalogView ( QObject *  parent = 0)
explicit

empty constructor

CatalogView::CatalogView ( const CatalogView cat)

copy constructor

Parameters
cat

Member Function Documentation

std::vector< Resource > CatalogView::items ( ) const

returns the filtered items out of the master-catalog.

Returns
list of resources
QUrl CatalogView::parentCatalogView ( ) const

Convenience method to retrieve the location the catalog is currently attached to.

location are maintained by the connector, not by the catalog. But sometimes it is needed (ui) to need to know the location the catalog is attached to.

Returns
The attached catalog resource

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