cartobase  5.0.5
carto::PropertyFilter Class Reference

#include <cartobase/object/propertyfilter.h>

Inheritance diagram for carto::PropertyFilter:
Collaboration diagram for carto::PropertyFilter:

Public Types

typedef ::sigc::signal1< void, const PropertyFilter &> Signal
 
typedef ::sigc::slot1< void, const PropertyFilter &> Slot
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 

Public Member Functions

 PropertyFilter (const std::string &name, const std::set< std::string > &propertyNames)
 
 PropertyFilter (const std::string &name, const std::string &propertyName)
 
virtual ~PropertyFilter ()
 
const std::string & getName () const
 
SignalgetSignal ()
 
bool hasProperty (const std::string &propertyName) const
 
bool hasOldValue (const std::string &propertyName) const
 
void setOldValue (const std::string &propertyName, const Object &oldValue)
 
Object getOldValue (const std::string &propertyName) const
 
void emitsignal ()
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 

Protected Attributes

std::string _name
 
std::set< std::string > _propertyNames
 
std::map< std::string, Object_oldValues
 
Signal _signal
 

Detailed Description

Definition at line 50 of file propertyfilter.h.

Member Typedef Documentation

◆ Signal

typedef ::sigc::signal1< void, const PropertyFilter& > carto::PropertyFilter::Signal

Definition at line 55 of file propertyfilter.h.

◆ Slot

typedef ::sigc::slot1< void, const PropertyFilter& > carto::PropertyFilter::Slot

Definition at line 56 of file propertyfilter.h.

Constructor & Destructor Documentation

◆ PropertyFilter() [1/2]

carto::PropertyFilter::PropertyFilter ( const std::string &  name,
const std::set< std::string > &  propertyNames 
)

◆ PropertyFilter() [2/2]

carto::PropertyFilter::PropertyFilter ( const std::string &  name,
const std::string &  propertyName 
)

◆ ~PropertyFilter()

virtual carto::PropertyFilter::~PropertyFilter ( )
virtual

Member Function Documentation

◆ emitsignal()

void carto::PropertyFilter::emitsignal ( )

◆ getName()

const std::string& carto::PropertyFilter::getName ( ) const

◆ getOldValue()

Object carto::PropertyFilter::getOldValue ( const std::string &  propertyName) const

◆ getSignal()

Signal& carto::PropertyFilter::getSignal ( )

◆ hasOldValue()

bool carto::PropertyFilter::hasOldValue ( const std::string &  propertyName) const

◆ hasProperty()

bool carto::PropertyFilter::hasProperty ( const std::string &  propertyName) const

◆ setOldValue()

void carto::PropertyFilter::setOldValue ( const std::string &  propertyName,
const Object oldValue 
)

Member Data Documentation

◆ _name

std::string carto::PropertyFilter::_name
protected

Definition at line 80 of file propertyfilter.h.

◆ _oldValues

std::map< std::string, Object > carto::PropertyFilter::_oldValues
protected

Definition at line 82 of file propertyfilter.h.

◆ _propertyNames

std::set< std::string > carto::PropertyFilter::_propertyNames
protected

Definition at line 81 of file propertyfilter.h.

◆ _signal

Signal carto::PropertyFilter::_signal
protected

Definition at line 83 of file propertyfilter.h.


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