GDAL
|
The simple class for rules. More...
#include <gnm.h>
Public Member Functions | |
GNMRule () | |
Constructor. | |
GNMRule (const std::string &oRule) | |
Constructor. | |
GNMRule (const char *pszRule) | |
Constructor. | |
GNMRule (const GNMRule &oRule) | |
Constructor. | |
virtual bool | IsValid () const |
This function indicate if rule string was parsed successfully. More... | |
virtual bool | IsAcceptAny () const |
Indicator of any layer state. More... | |
virtual GNMRuleType | GetType () const |
This is for future use to indicate the rule type/ Now return only GRTConnection type. More... | |
virtual bool | CanConnect (const CPLString &soSrcLayerName, const CPLString &soTgtLayerName, const CPLString &soConnLayerName="") |
Check if connection can take place. More... | |
virtual CPLString | GetSourceLayerName () const |
Return source layer name. | |
virtual CPLString | GetTargetLayerName () const |
Return target layer name. | |
virtual CPLString | GetConnectorLayerName () const |
Return connector layer name. | |
const char * | c_str () const |
Return rule as a string. | |
operator const char * (void) const | |
Return rule as a string. | |
The simple class for rules.
By now we have only connect rules, so the one class is enough. Maybe in future the set of classes for different rule types will be needed.
|
virtual |
Check if connection can take place.
soSrcLayerName | - the layer name |
soTgtLayerName | - the layer name |
soConnLayerName | - the layer name |
|
virtual |
This is for future use to indicate the rule type/ Now return only GRTConnection type.
|
virtual |
Indicator of any layer state.
|
virtual |
This function indicate if rule string was parsed successfully.