32 #include <boost/shared_ptr.hpp> 33 #include <boost/noncopyable.hpp> 73 :
private boost::noncopyable
77 typedef boost::shared_ptr<CDevice>
Pointer;
83 std::string GetID()
const;
86 bool HasType(std::string type)
const;
89 bool HasState(std::string signal)
const;
92 bool HasCommand(std::string signal)
const;
98 std::set<std::string> GetStateSet()
const;
101 std::set<std::string> GetCommandSet()
const;
104 void SetCommand(std::string signal,
SignalValue value);
121 #endif // C_DEVICE_HPP Defines the interface used to access physical hardware.
Definition: CDevice.hpp:72
Stores the internal structure of a device object.
Definition: CDevice.hpp:40
std::set< std::string > s_type
Set of types a device recognizes.
Definition: CDevice.hpp:43
std::set< std::string > s_command
Set of command signals a device recognizes.
Definition: CDevice.hpp:49
std::set< std::string > s_state
Set of state signals a device recognizes.
Definition: CDevice.hpp:46
IAdapter::Pointer m_adapter
Adapter that handles the storage for this device.
Definition: CDevice.hpp:114
DeviceInfo m_devinfo
Internal structure of this device.
Definition: CDevice.hpp:111
float SignalValue
Type of the value for device signals.
Definition: IAdapter.hpp:42
boost::shared_ptr< CDevice > Pointer
Pointer to physical device interface.
Definition: CDevice.hpp:77
std::string m_devid
Unique identifier for this device.
Definition: CDevice.hpp:108
General FREEDM Namespace.
Definition: CBroker.cpp:53
boost::shared_ptr< IAdapter > Pointer
Pointer to a physical adapter.
Definition: IAdapter.hpp:72
std::ostream & operator<<(std::ostream &os, const DeviceInfo &info)
Outputs the device information to the passed output stream.
Definition: CDevice.cpp:57