Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
PropertySet_impl Class Reference

#include <PropertySet_impl.h>

Inheritance diagram for PropertySet_impl:
Resource_impl Component Device_impl frontend::FrontendTunerDevice< TunerStatusStructType > LoadableDevice_impl ExecutableDevice_impl

Public Member Functions

 PropertySet_impl ()
 
 ~PropertySet_impl ()
 
void setExecparamProperties (std::map< std::string, char * > &)
 
void initializeProperties (const CF::Properties &initialProperties) throw (CF::PropertyEmitter::AlreadyInitialized, CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void query (CF::Properties &configProperties) throw (CF::UnknownProperties, CORBA::SystemException)
 
PropertyInterface * getPropertyFromId (const std::string &)
 
PropertyInterface * getPropertyFromName (const std::string &)
 
void registerPropertyChangePort (PropertyEventSupplier *_propertyChangePort)
 
char * registerPropertyListener (CORBA::Object_ptr listener, const CF::StringSequence &prop_ids, const CORBA::Float interval) throw (CF::UnknownProperties, CF::InvalidObjectReference)
 
void unregisterPropertyListener (const char *reg_id) throw (CF::InvalidIdentifier)
 
void startPropertyChangeMonitor (const std::string &rsc_id)
 
void stopPropertyChangeMonitor ()
 

Protected Types

typedef void(* PropertyCallbackFn) (const std::string &)
 
typedef std::map< std::string, PropertyInterface * > PropertyMap
 

Protected Member Functions

CF::DataType getProperty (CORBA::String_var id)
 
void validate (CF::Properties property, CF::Properties &validProps, CF::Properties &invalidProps)
 
template<typename T >
PropertyInterface * addProperty (T &value, const std::string &id, const std::string &name, const std::string &mode, const std::string &units, const std::string &action, const std::string &kinds)
 
template<typename T , typename T2 >
PropertyInterface * addProperty (T &value, const T2 &initial_value, const std::string &id, const std::string &name, const std::string &mode, const std::string &units, const std::string &action, const std::string &kinds)
 
template<class C , typename T >
void addPropertyChangeListener (const std::string &id, C *target, void(C::*func)(const T *, const T *))
 
template<typename T >
void addPropertyChangeListener (const std::string &id, void(*func)(const T *, const T *))
 
template<typename Func >
void addPropertyChangeListener (const char *id, Func func)
 
template<typename Target , typename Func >
void addPropertyChangeListener (const char *id, Target target, Func func)
 
template<typename T , typename Target , typename Func >
void addPropertyListener (T &value, Target target, Func func)
 
template<typename T , typename Func >
void addPropertyListener (T &value, Func func)
 
template<typename T , typename Target , typename Func >
void setPropertyQueryImpl (T &value, Target target, Func func)
 
template<typename T , typename Func >
void setPropertyQueryImpl (T &value, Func func)
 
template<typename T , typename Target , typename Func >
void setPropertyConfigureImpl (T &value, Target target, Func func)
 
template<typename T , typename Func >
void setPropertyConfigureImpl (T &value, Func func)
 
template<class T >
void setPropertyChangeListener (const std::string &id, T &target, void(T::*func)(const std::string &))
 
template<class T >
void setPropertyChangeListener (const std::string &id, T *target, void(T::*func)(const std::string &))
 
template<class T >
PropertyWrapper< T > * getPropertyWrapperById (const std::string &id)
 
template<class T >
PropertyWrapper< T > * getPropertyWrapper (T &value)
 
PropertyInterface * getPropertyFromAddress (const void *address)
 
void setPropertyChangeListener (const std::string &id, PropertyCallbackFn func)
 
void executePropertyCallback (const std::string &id)
 

Protected Attributes

boost::mutex propertySetAccess
 
PropertyEventSupplier * propertyChangePort
 
std::vector< PropertyInterface * > ownedWrappers
 
PropertyMap propTable
 

Friends

class PropertyChangeThread
 

Member Typedef Documentation

typedef void(* PropertySet_impl::PropertyCallbackFn) (const std::string &)
protected
typedef std::map<std::string, PropertyInterface*> PropertySet_impl::PropertyMap
protected

Constructor & Destructor Documentation

PropertySet_impl::PropertySet_impl ( )
PropertySet_impl::~PropertySet_impl ( )

Member Function Documentation

template<typename T >
PropertyInterface* PropertySet_impl::addProperty ( T &  value,
const std::string &  id,
const std::string &  name,
const std::string &  mode,
const std::string &  units,
const std::string &  action,
const std::string &  kinds 
)
inlineprotected
template<typename T , typename T2 >
PropertyInterface* PropertySet_impl::addProperty ( T &  value,
const T2 &  initial_value,
const std::string &  id,
const std::string &  name,
const std::string &  mode,
const std::string &  units,
const std::string &  action,
const std::string &  kinds 
)
inlineprotected
template<class C , typename T >
void PropertySet_impl::addPropertyChangeListener ( const std::string &  id,
C *  target,
void(C::*)(const T *, const T *)  func 
)
inlineprotected
template<typename T >
void PropertySet_impl::addPropertyChangeListener ( const std::string &  id,
void(*)(const T *, const T *)  func 
)
inlineprotected
template<typename Func >
void PropertySet_impl::addPropertyChangeListener ( const char *  id,
Func  func 
)
inlineprotected
template<typename Target , typename Func >
void PropertySet_impl::addPropertyChangeListener ( const char *  id,
Target  target,
Func  func 
)
inlineprotected
template<typename T , typename Target , typename Func >
void PropertySet_impl::addPropertyListener ( T &  value,
Target  target,
Func  func 
)
inlineprotected
template<typename T , typename Func >
void PropertySet_impl::addPropertyListener ( T &  value,
Func  func 
)
inlineprotected
void PropertySet_impl::configure ( const CF::Properties &  configProperties)
throw (CF::PropertySet::PartialConfiguration,
CF::PropertySet::InvalidConfiguration,
CORBA::SystemException
)
void PropertySet_impl::executePropertyCallback ( const std::string &  id)
protected
CF::DataType PropertySet_impl::getProperty ( CORBA::String_var  id)
protected
PropertyInterface* PropertySet_impl::getPropertyFromAddress ( const void *  address)
protected
PropertyInterface* PropertySet_impl::getPropertyFromId ( const std::string &  )
PropertyInterface* PropertySet_impl::getPropertyFromName ( const std::string &  )
template<class T >
PropertyWrapper<T>* PropertySet_impl::getPropertyWrapper ( T &  value)
inlineprotected
template<class T >
PropertyWrapper<T>* PropertySet_impl::getPropertyWrapperById ( const std::string &  id)
inlineprotected
void PropertySet_impl::initializeProperties ( const CF::Properties &  initialProperties)
throw (CF::PropertyEmitter::AlreadyInitialized,
CF::PropertySet::PartialConfiguration,
CF::PropertySet::InvalidConfiguration,
CORBA::SystemException
)
void PropertySet_impl::query ( CF::Properties &  configProperties)
throw (CF::UnknownProperties,
CORBA::SystemException
)
void PropertySet_impl::registerPropertyChangePort ( PropertyEventSupplier *  _propertyChangePort)
inline
char* PropertySet_impl::registerPropertyListener ( CORBA::Object_ptr  listener,
const CF::StringSequence &  prop_ids,
const CORBA::Float  interval 
)
throw (CF::UnknownProperties,
CF::InvalidObjectReference
)
void PropertySet_impl::setExecparamProperties ( std::map< std::string, char * > &  )
template<class T >
void PropertySet_impl::setPropertyChangeListener ( const std::string &  id,
T &  target,
void(T::*)(const std::string &)  func 
)
inlineprotected
template<class T >
void PropertySet_impl::setPropertyChangeListener ( const std::string &  id,
T *  target,
void(T::*)(const std::string &)  func 
)
inlineprotected
void PropertySet_impl::setPropertyChangeListener ( const std::string &  id,
PropertyCallbackFn  func 
)
protected
template<typename T , typename Target , typename Func >
void PropertySet_impl::setPropertyConfigureImpl ( T &  value,
Target  target,
Func  func 
)
inlineprotected
template<typename T , typename Func >
void PropertySet_impl::setPropertyConfigureImpl ( T &  value,
Func  func 
)
inlineprotected
template<typename T , typename Target , typename Func >
void PropertySet_impl::setPropertyQueryImpl ( T &  value,
Target  target,
Func  func 
)
inlineprotected
template<typename T , typename Func >
void PropertySet_impl::setPropertyQueryImpl ( T &  value,
Func  func 
)
inlineprotected
void PropertySet_impl::startPropertyChangeMonitor ( const std::string &  rsc_id)
void PropertySet_impl::stopPropertyChangeMonitor ( )
void PropertySet_impl::unregisterPropertyListener ( const char *  reg_id)
throw (CF::InvalidIdentifier
)
void PropertySet_impl::validate ( CF::Properties  property,
CF::Properties &  validProps,
CF::Properties &  invalidProps 
)
protected

Friends And Related Function Documentation

friend class PropertyChangeThread
friend

Member Data Documentation

std::vector<PropertyInterface*> PropertySet_impl::ownedWrappers
protected
PropertyEventSupplier* PropertySet_impl::propertyChangePort
protected
boost::mutex PropertySet_impl::propertySetAccess
protected
PropertyMap PropertySet_impl::propTable
protected

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