TranslatorChannelBase Class
(ServerIO::Translator::TranslatorChannelBase)Type-less base class for TranslatorChannel<T>. Defines virtual functions to be implemented in derived (typed) classes for setting and getting channel synced values. More...
Header: | #include <IO/ServerIO/Translator/TranslatorChannel.h> |
Inherited By: |
Public Functions
virtual | ~TranslatorChannelBase() |
bool | Bidirectional() |
virtual bool | GetData(void *data, unsigned int size = 0) |
unsigned int | GetDataSize() const |
virtual bool | HasMappedValue() const = 0 |
bool | Input() |
virtual std::string | MappedValue() const = 0 |
std::string | Name() const |
virtual bool | PutData(const void *data, unsigned int size = 0) |
void | SerializeChannel(CDP::StudioAPI::NodeStream &NodeStream) const |
virtual bool | SetMappedValue(const std::string &stringVal) = 0 |
void | SetOnChangeValidator(ServerIO::ISendTrigger *sendTo) |
virtual void | SetValue(const std::string &stringVal) = 0 |
void | SetValue(T val) |
void | SetValueMapper(ValueMapper *m) |
virtual std::string | StringValue() const = 0 |
virtual std::string | Type() const = 0 |
T | Value() const |
Static Public Members
TranslatorChannelBase * | CreateNew(const std::string &type, ServerIO::ICDPChannel *iCDPChannel) |
Detailed Description
Type-less base class for TranslatorChannel<T>. Defines virtual functions to be implemented in derived (typed) classes for setting and getting channel synced values.
Member Function Documentation
[virtual]
TranslatorChannelBase::~TranslatorChannelBase()
Destructor for TranslatorChannelBase. Explicitly mandatory for TranslatorChannelBase vtable.
bool TranslatorChannelBase::Bidirectional()
[static]
TranslatorChannelBase *TranslatorChannelBase::CreateNew(const std::string &type, ServerIO::ICDPChannel *iCDPChannel)
[virtual]
bool TranslatorChannelBase::GetData(void *data, unsigned int size = 0)
Gets syncValue binary data.
unsigned int TranslatorChannelBase::GetDataSize() const
[pure virtual]
bool TranslatorChannelBase::HasMappedValue() const
bool TranslatorChannelBase::Input()
[pure virtual]
std::string TranslatorChannelBase::MappedValue() const
std::string TranslatorChannelBase::Name() const
Returns channel name.
[virtual]
bool TranslatorChannelBase::PutData(const void *data, unsigned int size = 0)
void TranslatorChannelBase::SerializeChannel(CDP::StudioAPI::NodeStream &NodeStream) const
Serializes actual CDP channel to nodestream.
[pure virtual]
bool TranslatorChannelBase::SetMappedValue(const std::string &stringVal)
void TranslatorChannelBase::SetOnChangeValidator(ServerIO::ISendTrigger *sendTo)
[pure virtual]
void TranslatorChannelBase::SetValue(const std::string &stringVal)
void TranslatorChannelBase::SetValue(T val)
Templated helper function for setting channel synced value.
void TranslatorChannelBase::SetValueMapper(ValueMapper *m)
Used to set protected valuemapper (back)pointer.
[pure virtual]
std::string TranslatorChannelBase::StringValue() const
[pure virtual]
std::string TranslatorChannelBase::Type() const
T TranslatorChannelBase::Value() const
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.