OpenTTCN/Knowledge base/Standard codec explained/Custom/CPP/CD impl.h
From OpenTTCN
Home | Developer's corner | Knowledge base | Working documents | Documentation | OpenTTCN IDE | Tutorials | Training | How do I | Frequently asked questions | Technical support |
CD_impl.h
#ifndef __OT_SDK4CPP_STD_CODEC_EXAMPLE_CD_IMPL_H__
#define __OT_SDK4CPP_STD_CODEC_EXAMPLE_CD_IMPL_H__
#include <tci/TciCdProvided.h>
#include <CodecComponent.h>
#include <memory>
using namespace ORG_ETSI_TTCN3_TCI;
using namespace ORG_ETSI_TTCN3_TRI;
class CD_impl : public TciCdProvided
{
std::auto_ptr<OpenTTCN::SDK::CodecComponent> _delegate;
public:
CD_impl();
virtual ~CD_impl();
virtual TriMessage* encode(const TciValue* value_);
virtual TciValue* decode(const TriMessage* message_,
const TciType* decodingHypothesis_);
};
#endif
