Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Device_impl Class Reference

#include <Device_impl.h>

Inheritance diagram for Device_impl:
Resource_impl PropertySet_impl PortSupplier_impl LifeCycle_impl TestableObject_impl Logging_impl frontend::FrontendTunerDevice< TunerStatusStructType > LoadableDevice_impl ExecutableDevice_impl

Public Member Functions

 Device_impl (char *, char *, char *, char *)
 
 Device_impl (char *, char *, char *, char *, char *)
 
 Device_impl (char *, char *, char *, char *, CF::Properties &capacities)
 
 Device_impl (char *, char *, char *, char *, CF::Properties &capacities, char *)
 
 ~Device_impl ()
 
virtual void halt ()
 
void releaseObject () throw (CF::LifeCycle::ReleaseError, CORBA::SystemException)
 
char * label () throw (CORBA::SystemException)
 
CF::Device::UsageType usageState () throw (CORBA::SystemException)
 
CF::Device::AdminType adminState () throw (CORBA::SystemException)
 
CF::Device::OperationalType operationalState () throw (CORBA::SystemException)
 
CF::AggregateDevice_ptr compositeDevice () throw (CORBA::SystemException)
 
void adminState (CF::Device::AdminType _adminType) throw (CORBA::SystemException)
 
void deallocateCapacity (const CF::Properties &capacities) throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CORBA::SystemException)
 
CORBA::Boolean allocateCapacity (const CF::Properties &capacities) throw (CF::Device::InvalidState, CF::Device::InvalidCapacity, CF::Device::InsufficientCapacity, CORBA::SystemException)
 
void configure (const CF::Properties &configProperties) throw (CF::PropertySet::PartialConfiguration, CF::PropertySet::InvalidConfiguration, CORBA::SystemException)
 
void setAdditionalParameters (std::string &softwareProfile, std::string &application_registrar_ior, const std::string &nic)
 
virtual void run ()
 
const CF::DeviceManager_ptr getDeviceManager () const
 
bool isUnlocked ()
 
bool isLocked ()
 
bool isDisabled ()
 
bool isBusy ()
 
bool isIdle ()
 
void setAdminState (CF::Device::AdminType _adminType)
 
- Public Member Functions inherited from Resource_impl
virtual ~Resource_impl ()
 
 Resource_impl (const char *_uuid)
 
 Resource_impl (const char *_uuid, const char *label)
 
virtual void constructor ()
 
void setParentId (const std::string &parentid)
 
void start () throw (CF::Resource::StartError, CORBA::SystemException)
 
void stop () throw (CF::Resource::StopError, CORBA::SystemException)
 
void initialize () throw (CF::LifeCycle::InitializeError, CORBA::SystemException)
 
void releaseObject () throw (CORBA::SystemException, CF::LifeCycle::ReleaseError)
 
char * identifier () throw (CORBA::SystemException)
 
CORBA::Boolean started () throw (CORBA::SystemException)
 
char * softwareProfile () throw (CORBA::SystemException)
 
virtual void setCurrentWorkingDirectory (std::string &cwd)
 
virtual std::string & getCurrentWorkingDirectory ()
 
virtual void setAdditionalParameters (std::string &softwareProfile, std::string &application_registrar_ior, std::string &nic)
 
redhawk::DomainManagerContainer * getDomainManager ()
 
- Public Member Functions inherited from PropertySet_impl
 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 ()
 
- Public Member Functions inherited from PortSupplier_impl
 PortSupplier_impl ()
 
CORBA::Object * getPort (const char *) throw (CF::PortSupplier::UnknownPort, CORBA::SystemException)
 
CF::PortSupplier::PortInfoSequence * getPortSet ()
 
- Public Member Functions inherited from LifeCycle_impl
 LifeCycle_impl ()
 
void initialize () throw (CF::LifeCycle::InitializeError, CORBA::SystemException)
 
void releaseObject () throw (CF::LifeCycle::ReleaseError, CORBA::SystemException)
 
- Public Member Functions inherited from TestableObject_impl
 TestableObject_impl ()
 
void runTest (CORBA::ULong TestID, CF::Properties &testValues) throw (CF::UnknownProperties, CF::TestableObject::UnknownTest, CORBA::SystemException)
 
- Public Member Functions inherited from Logging_impl
 Logging_impl ()
 
virtual ~Logging_impl ()
 
char * getLogConfig ()
 
void setLogConfig (const char *config_contents)
 
void setLogConfigURL (const char *config_url)
 
CF::LogLevel log_level ()
 
void log_level (const CF::LogLevel newLevel)
 
void setLogLevel (const char *logger_id, const CF::LogLevel newLevel) throw (CF::UnknownIdentifier)
 
LOGGER getLogger ()
 
LOGGER getLogger (const std::string &logger_name, const bool assignToResource=false)
 
CF::LogEventSequence * retrieve_records (CORBA::ULong &howMany, CORBA::ULong startingRecord)
 
CF::LogEventSequence * retrieve_records_by_date (CORBA::ULong &howMany, CORBA::ULongLong to_timeStamp)
 
CF::LogEventSequence * retrieve_records_from_date (CORBA::ULong &howMany, CORBA::ULongLong from_timeStamp)
 
void setLoggingMacros (ossie::logging::MacroTable &tbl, bool applyCtx)
 
void setResourceContext (ossie::logging::ResourceCtxPtr ctx)
 
void setLoggingContext (ossie::logging::ResourceCtxPtr ctx)
 
void setLoggingContext (const std::string &url, int loglevel, ossie::logging::ResourceCtxPtr ctx)
 
void saveLoggingContext (const std::string &url, int loglevel, ossie::logging::ResourceCtxPtr ctx)
 

Static Public Member Functions

static std::string getLogConfig (const char *devmgr_ior, const char *log_config, std::string &devmgr_label)
 
template<class T >
static void start_device (T **devPtr, struct sigaction sa, int argc, char *argv[])
 
- Static Public Member Functions inherited from Resource_impl
template<class T >
static void start_component (T *&component, int argc, char *argv[])
 

Protected Types

enum  AnyComparisonType {
  FIRST_BIGGER, SECOND_BIGGER, BOTH_EQUAL, POSITIVE,
  NEGATIVE, ZERO, UNKNOWN
}
 
- Protected Types inherited from PropertySet_impl
typedef void(* PropertyCallbackFn) (const std::string &)
 
typedef std::map< std::string, PropertyInterface * > PropertyMap
 
- Protected Types inherited from PortSupplier_impl
typedef std::map< std::string, PortBase * > PortServantMap
 
typedef std::map< std::string, Port_Uses_base_impl * > RH_UsesPortMap
 
typedef std::map< std::string, Port_Provides_base_impl * > RH_ProvidesPortMap
 
- Protected Types inherited from Logging_impl
typedef boost::shared_ptr< LogConfigListenerLogConfigListenerPtr
 
typedef boost::shared_ptr< LogLevelListenerLogLevelListenerPtr
 

Protected Member Functions

virtual void postConstruction (std::string &softwareProfile, std::string &registrar_ior, const std::string &idm_channel_ior="", const std::string &nic="", const int sigfd=-1)
 
void resolveDomainContext ()
 
void sendStateChange (StandardEvent::StateChangeType &fromState, StandardEvent::StateChangeType &toState, StandardEvent::StateChangeCategoryType category)
 
void connectIDMChannel (const std::string &idm_ior="")
 
void deallocate (CORBA::Any &deviceCapacity, const CORBA::Any &resourceRequest)
 
bool allocate (CORBA::Any &deviceCapacity, const CORBA::Any &resourceRequest)
 
Device_impl::AnyComparisonType compareAnyToZero (CORBA::Any &first)
 
Device_impl::AnyComparisonType compareAnys (CORBA::Any &first, CORBA::Any &second)
 
void setUsageState (CF::Device::UsageType newUsageState)
 
void updateUsageState ()
 
template<typename T >
void setAllocationImpl (const std::string &id, bool(*alloc)(const T &), void(*dealloc)(const T &))
 
template<class C , typename T >
void setAllocationImpl (const std::string &id, C *target, bool(C::*alloc)(const T &), void(C::*dealloc)(const T &))
 
template<typename Alloc , typename Dealloc >
void setAllocationImpl (const char *id, Alloc alloc, Dealloc dealloc)
 
template<typename Target , typename Alloc , typename Dealloc >
void setAllocationImpl (const char *id, Target target, Alloc alloc, Dealloc dealloc)
 
template<typename T >
PropertyWrapper< T > * getAllocationPropertyById (const std::string &id)
 
template<typename T , typename Alloc , typename Dealloc >
void setAllocationImpl (T &value, Alloc alloc, Dealloc dealloc)
 
template<typename T , typename Target , typename Alloc , typename Dealloc >
void setAllocationImpl (T &value, Target target, Alloc alloc, Dealloc dealloc)
 
redhawk::DeviceManagerContainer * getDeviceManager ()
 
- Protected Member Functions inherited from PropertySet_impl
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 Member Functions inherited from PortSupplier_impl
void addPort (const std::string &name, PortBase *servant)
 
void addPort (const std::string &name, const std::string &description, PortBase *servant)
 
void releasePorts ()
 
void startPorts ()
 
void stopPorts ()
 
void registerInPort (Port_Provides_base_impl *port)
 
void registerOutPort (Port_Uses_base_impl *port, CF::Port_ptr ref)
 
void releaseInPorts ()
 
void releaseOutPorts ()
 
void deactivateOutPorts ()
 
void deactivateInPorts ()
 
- Protected Member Functions inherited from Logging_impl
template<typename T >
void setLogConfigListener (T &target, void(T::*func)(const char *config_data))
 
template<typename T >
void setLogConfigListener (T *target, void(T::*func)(const char *config_data))
 
template<typename T >
void setLogLevelListener (T &target, void(T::*func)(const char *logid, const CF::LogLevel &level))
 
template<typename T >
void setLogLevelListener (T *target, void(T::*func)(const char *logid, const CF::LogLevel &level))
 
virtual void setLogConfigCallback (LogConfigListener *func)
 
virtual void setLogConfigCallback (LogConfigCallbackFn func)
 
virtual void setLogLevelCallback (LogLevelListener *func)
 
virtual void setLogLevelCallback (LogLevelCallbackFn func)
 

Protected Attributes

CF::Device::AdminType _adminState
 
CF::Device::UsageType _usageState
 
CF::Device::OperationalType _operationalState
 
CF::AggregateDevice_ptr _aggregateDevice
 
std::string _label
 
std::string _compositeDev_ior
 
CF::DeviceManager_ptr _deviceManager
 
redhawk::events::PublisherPtr idm_publisher
 
int sig_fd
 
bool initialConfiguration
 
CF::Properties originalCap
 
std::string _devMgr_ior
 
- Protected Attributes inherited from Resource_impl
bool _started
 
std::string _softwareProfile
 
omni_mutex component_running_mutex
 
omni_condition component_running
 
- Protected Attributes inherited from PropertySet_impl
boost::mutex propertySetAccess
 
PropertyEventSupplier * propertyChangePort
 
std::vector< PropertyInterface * > ownedWrappers
 
PropertyMap propTable
 
- Protected Attributes inherited from PortSupplier_impl
PortServantMap _portServants
 
RH_UsesPortMap outPorts
 
std::map< std::string, CF::Port_var > outPorts_var
 
RH_ProvidesPortMap inPorts
 
- Protected Attributes inherited from Logging_impl
std::string _logName
 
CF::LogLevel _logLevel
 
LOGGER _logger
 
ossie::logging::MacroTable _loggingMacros
 

Additional Inherited Members

- Public Types inherited from Logging_impl
typedef void(* LogConfigCallbackFn) (const char *config_data)
 
typedef void(* LogLevelCallbackFn) (const char *logid, const CF::LogLevel &)
 
- Public Attributes inherited from Resource_impl
std::string _identifier
 
std::string naming_service_name
 
std::string _parent_id
 

Member Enumeration Documentation

Enumerator
FIRST_BIGGER 
SECOND_BIGGER 
BOTH_EQUAL 
POSITIVE 
NEGATIVE 
ZERO 
UNKNOWN 

Constructor & Destructor Documentation

Device_impl::Device_impl ( char *  ,
char *  ,
char *  ,
char *   
)
Device_impl::Device_impl ( char *  ,
char *  ,
char *  ,
char *  ,
char *   
)
Device_impl::Device_impl ( char *  ,
char *  ,
char *  ,
char *  ,
CF::Properties &  capacities 
)
Device_impl::Device_impl ( char *  ,
char *  ,
char *  ,
char *  ,
CF::Properties &  capacities,
char *   
)
Device_impl::~Device_impl ( )

Member Function Documentation

CF::Device::AdminType Device_impl::adminState ( )
throw (CORBA::SystemException
)
void Device_impl::adminState ( CF::Device::AdminType  _adminType)
throw (CORBA::SystemException
)
bool Device_impl::allocate ( CORBA::Any &  deviceCapacity,
const CORBA::Any &  resourceRequest 
)
protected
CORBA::Boolean Device_impl::allocateCapacity ( const CF::Properties &  capacities)
throw (CF::Device::InvalidState,
CF::Device::InvalidCapacity,
CF::Device::InsufficientCapacity,
CORBA::SystemException
)
Device_impl::AnyComparisonType Device_impl::compareAnys ( CORBA::Any &  first,
CORBA::Any &  second 
)
protected
Device_impl::AnyComparisonType Device_impl::compareAnyToZero ( CORBA::Any &  first)
protected
CF::AggregateDevice_ptr Device_impl::compositeDevice ( )
throw (CORBA::SystemException
)
void Device_impl::configure ( const CF::Properties &  configProperties)
throw (CF::PropertySet::PartialConfiguration,
CF::PropertySet::InvalidConfiguration,
CORBA::SystemException
)
void Device_impl::connectIDMChannel ( const std::string &  idm_ior = "")
protected
void Device_impl::deallocate ( CORBA::Any &  deviceCapacity,
const CORBA::Any &  resourceRequest 
)
protected
void Device_impl::deallocateCapacity ( const CF::Properties &  capacities)
throw (CF::Device::InvalidState,
CF::Device::InvalidCapacity,
CORBA::SystemException
)
template<typename T >
PropertyWrapper<T>* Device_impl::getAllocationPropertyById ( const std::string &  id)
inlineprotected
const CF::DeviceManager_ptr Device_impl::getDeviceManager ( ) const
redhawk::DeviceManagerContainer* Device_impl::getDeviceManager ( )
inlineprotected
static std::string Device_impl::getLogConfig ( const char *  devmgr_ior,
const char *  log_config,
std::string &  devmgr_label 
)
static
virtual void Device_impl::halt ( )
virtual

Reimplemented from Resource_impl.

bool Device_impl::isBusy ( )
bool Device_impl::isDisabled ( )
bool Device_impl::isIdle ( )
bool Device_impl::isLocked ( )
bool Device_impl::isUnlocked ( )
char* Device_impl::label ( )
throw (CORBA::SystemException
)
CF::Device::OperationalType Device_impl::operationalState ( )
throw (CORBA::SystemException
)
virtual void Device_impl::postConstruction ( std::string &  softwareProfile,
std::string &  registrar_ior,
const std::string &  idm_channel_ior = "",
const std::string &  nic = "",
const int  sigfd = -1 
)
protectedvirtual
void Device_impl::releaseObject ( )
throw (CF::LifeCycle::ReleaseError,
CORBA::SystemException
)
void Device_impl::resolveDomainContext ( )
protected
virtual void Device_impl::run ( )
virtual

Reimplemented from Resource_impl.

void Device_impl::sendStateChange ( StandardEvent::StateChangeType &  fromState,
StandardEvent::StateChangeType &  toState,
StandardEvent::StateChangeCategoryType  category 
)
protected
void Device_impl::setAdditionalParameters ( std::string &  softwareProfile,
std::string &  application_registrar_ior,
const std::string &  nic 
)
void Device_impl::setAdminState ( CF::Device::AdminType  _adminType)
template<typename T >
void Device_impl::setAllocationImpl ( const std::string &  id,
bool(*)(const T &)  alloc,
void(*)(const T &)  dealloc 
)
inlineprotected
template<class C , typename T >
void Device_impl::setAllocationImpl ( const std::string &  id,
C *  target,
bool(C::*)(const T &)  alloc,
void(C::*)(const T &)  dealloc 
)
inlineprotected
template<typename Alloc , typename Dealloc >
void Device_impl::setAllocationImpl ( const char *  id,
Alloc  alloc,
Dealloc  dealloc 
)
inlineprotected
template<typename Target , typename Alloc , typename Dealloc >
void Device_impl::setAllocationImpl ( const char *  id,
Target  target,
Alloc  alloc,
Dealloc  dealloc 
)
inlineprotected
template<typename T , typename Alloc , typename Dealloc >
void Device_impl::setAllocationImpl ( T &  value,
Alloc  alloc,
Dealloc  dealloc 
)
inlineprotected
template<typename T , typename Target , typename Alloc , typename Dealloc >
void Device_impl::setAllocationImpl ( T &  value,
Target  target,
Alloc  alloc,
Dealloc  dealloc 
)
inlineprotected
void Device_impl::setUsageState ( CF::Device::UsageType  newUsageState)
protected
template<class T >
static void Device_impl::start_device ( T **  devPtr,
struct sigaction  sa,
int  argc,
char *  argv[] 
)
inlinestatic
void Device_impl::updateUsageState ( )
protected
CF::Device::UsageType Device_impl::usageState ( )
throw (CORBA::SystemException
)

Member Data Documentation

CF::Device::AdminType Device_impl::_adminState
protected
CF::AggregateDevice_ptr Device_impl::_aggregateDevice
protected
std::string Device_impl::_compositeDev_ior
protected
CF::DeviceManager_ptr Device_impl::_deviceManager
protected
std::string Device_impl::_devMgr_ior
protected
std::string Device_impl::_label
protected
CF::Device::OperationalType Device_impl::_operationalState
protected
CF::Device::UsageType Device_impl::_usageState
protected
redhawk::events::PublisherPtr Device_impl::idm_publisher
protected
bool Device_impl::initialConfiguration
protected
CF::Properties Device_impl::originalCap
protected
int Device_impl::sig_fd
protected

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