GDAL
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GNMRule Class Reference

The simple class for rules. More...

#include <gnm.h>

Public Member Functions

 GNMRule (const std::string &oRule)
 
 GNMRule (const char *pszRule)
 
 GNMRule (const GNMRule &oRule)
 
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
 
virtual CPLString GetTargetLayerName () const
 
virtual CPLString GetConnectorLayerName () const
 
const char * c_str () const
 
 operator const char * (void) const
 

Protected Member Functions

virtual bool ParseRuleString ()
 

Protected Attributes

CPLString m_soSrcLayerName
 
CPLString m_soTgtLayerName
 
CPLString m_soConnLayerName
 
bool m_bAllow
 
bool m_bValid
 
bool m_bAny
 
CPLString m_soRuleString
 

Detailed Description

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.

Since
GDAL 2.1

Member Function Documentation

bool GNMRule::CanConnect ( const CPLString soSrcLayerName,
const CPLString soTgtLayerName,
const CPLString soConnLayerName = "" 
)
virtual

Check if connection can take place.

Parameters
soSrcLayerName- the layer name
soTgtLayerName- the layer name
soConnLayerName- the layer name
Returns
true if can connect features from soSrcLayerName and soTgtLayerName via soConnLayerName
GNMRuleType GNMRule::GetType ( ) const
virtual

This is for future use to indicate the rule type/ Now return only GRTConnection type.

Returns
the rule type
bool GNMRule::IsAcceptAny ( ) const
virtual

Indicator of any layer state.

Returns
true if accept any layer
bool GNMRule::IsValid ( ) const
virtual

This function indicate if rule string was parsed successfully.

Returns
true if rule is valid

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

Generated for GDAL by doxygen 1.8.9.1.