namespace codec {
+class Engine;
+
namespace tme {
class Avp;
class Message;
-class Engine;
+//class Engine;
using namespace helpers::tme::codectypes;
virtual void allocationByFormat(const anna::diameter::stack::Format *stackFormat) throw();
virtual void clearByFormat() throw();
-protected:
+//protected:
- /** Codec Engine getter: avoids have to create base engine when using its child */
- virtual anna::diameter::codec::Engine * getEngine() const throw(anna::RuntimeException);
+// /** Codec Engine getter: avoids have to create base engine when using its child */
+// virtual anna::diameter::codec::Engine * getEngine() const throw(anna::RuntimeException);
public:
/**
* Default constructor
+ * @param engine Codec engine used
*/
- Avp();
+ Avp(Engine *engine = NULL) : anna::diameter::codec::Avp(engine) {;}
/**
* Identified constructor
- * @param id Avp identifier as pair (code,vendorID).
+ * @param id Avp identifier as pair (code,vendor-id).
+ * @param engine Codec engine used
*/
- Avp(AvpId id);
+ Avp(AvpId id, Engine *engine = NULL) : anna::diameter::codec::Avp(id, engine) {;}
+
/**
* Destructor
friend class Message;
- friend class Engine;
+ friend class anna::diameter::codec::Engine;
};
}