1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef anna_diameter_codec_basetypes_UTF8String_hpp
10 #define anna_diameter_codec_basetypes_UTF8String_hpp
14 #include <anna/diameter/codec/basetypes/OctetString.hpp>
28 * Diameter UTF8String container
30 class UTF8String : public OctetString {
31 // Note that the AVP Length field of an UTF8String is measured in octets, not characters.
32 // De momento no vamos a interpretar/decodificar este tipo de formato, puesto que aún no se ha necesitado a nivel de aplicación
34 // Only for derived diameter type:
35 void updateBasic() throw(anna::RuntimeException); // assertPrintable
41 std::string getFormatName() const throw() { return "UTF8String"; }
49 void decode(const char* buffer, const int size) throw(anna::RuntimeException);