TranslatorBase Class
(ServerIO::Translator::TranslatorBase)Translator abstract class. Derived classes have to implement Translate() for ostream (for compose) and/or for istream (for parse). Derived classes can override MimeType() to inform translator users (IOServers) about MIME type that the class is generating or parsing. More...
| Header: | #include <TranslatorBase> |
| Inherits: | CDP::StudioAPI::CDPNode |
Public Functions
| virtual void | Configure(XMLElementEx *element, CDP::StudioAPI::ICDPNode *parent) |
| virtual std::string | MimeType() const |
| virtual void | Translate(STREAMTYPE &stream, const TranslatorChannelGroup &channelTree) const = 0 |
Reimplemented Public Functions
| virtual const std::string | GetNodeName() const override |
- 27 public functions inherited from CDP::StudioAPI::CDPNode
- 22 public functions inherited from CDP::StudioAPI::ICDPNode
Static Public Members
| std::string | UnEscapeCppLiterals(const std::string &str) |
Reimplemented Protected Functions
| virtual void | FillNodeChildren(CDP::StudioAPI::NodeStream &stream) const override |
- 1 protected function inherited from CDP::StudioAPI::CDPNode
Detailed Description
Translator abstract class. Derived classes have to implement Translate() for ostream (for compose) and/or for istream (for parse). Derived classes can override MimeType() to inform translator users (IOServers) about MIME type that the class is generating or parsing.
Caution! These implementations must be thread-safe -- fe. not to acces property (that can be modified in component thread) values directly.
See also ServerIO::Translator::TranslatorChannelGroup and ServerIO::Translator::ValueMapper.
Member Function Documentation
[virtual] void TranslatorBase::Configure(XMLElementEx *element, CDP::StudioAPI::ICDPNode *parent)
[override virtual protected] void TranslatorBase::FillNodeChildren(CDP::StudioAPI::NodeStream &stream) const
[override virtual] const std::string TranslatorBase::GetNodeName() const
Reimplemented from ICDPNode::GetNodeName().
Returns node name. Returns property directly as this member function is not to be used in IOServer Main() thread.
[virtual] std::string TranslatorBase::MimeType() const
[pure virtual] void TranslatorBase::Translate(STREAMTYPE &stream, const TranslatorChannelGroup &channelTree) const
[static] std::string TranslatorBase::UnEscapeCppLiterals(const std::string &str)
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.