Allow diameter message & avp to normalize their xml representation
[anna.git] / source / diameter / codec / OamModule.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
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 //
7
8
9 #include <anna/diameter/codec/OamModule.hpp>
10
11
12 anna_assign_enum(anna::diameter::codec::OamModule::Alarm) = { \
13     "AvpDecode__NotEnoughBytesToCoverAvpHeaderLength", \
14     "AvpDecode__IncoherenceBetweenActivatedVBitAndZeroedVendorIDValueReceived", \
15     "AvpDecode__IncorrectLength", \
16     "AvpDecode__DataPartInconsistence", \
17     "AvpDecode__UnknownAvp__s__WithMandatoryBit", \
18     "MessageDecode__NotEnoughBytesToCoverMessageHeaderLength", \
19     "MessageDecode__NotEnoughBytesToCoverMessageLength", \
20     "AvpValidation__EnumeratedAvp__s__WithValue__d__DoesNotComplyRestriction__s__", \
21     "AvpValidation__Avp__s__Flags__d__DoesNotFulfillTheDefinedFlagRules__s__", \
22     "MessageValidation__UnknownOperation__s__UnableToValidate", \
23     "MessageValidation__Operation__s__HaveIncoherentFlags__d__", \
24     "LevelValidation__MissingFixedRule__s__Inside__s__", \
25     "LevelValidation__FailedRule__s__ForCardinality_Found__d__ItemsInside__s__", \
26     "LevelValidation__FailedGenericAvpRule__s__ForCardinality_Found__d__DisregardedItemsInside__s__", \
27     "LevelValidation__FoundDisregardedItemsInside__s__AndGenericAVPWasNotSpecified__s__", \
28     NULL /* list end indicator */
29                                                             };
30
31 anna_assign_enum(anna::diameter::codec::OamModule::Counter) = { \
32     "AvpDecode__NotEnoughBytesToCoverAvpHeaderLength", \
33     "AvpDecode__IncoherenceBetweenActivatedVBitAndZeroedVendorIDValueReceived", \
34     "AvpDecode__IncorrectLength", \
35     "AvpDecode__DataPartInconsistence", \
36     "AvpDecode__UnknownAvpWithMandatoryBit", \
37     "MessageDecode__NotEnoughBytesToCoverMessageHeaderLength", \
38     "MessageDecode__NotEnoughBytesToCoverMessageLength", \
39     "AvpValidation__EnumeratedAvpWithValueDoesNotComplyRestriction", \
40     "AvpValidation__AvpFlagsDoesNotFulfillTheDefinedFlagRules", \
41     "MessageValidation__UnknownOperationUnableToValidate", \
42     "MessageValidation__OperationHaveIncoherentFlags", \
43     "LevelValidation__MissingFixedRule", \
44     "LevelValidation__FailedRuleForCardinality", \
45     "LevelValidation__FailedRuleForCardinalityLessThanNeeded", \
46     "LevelValidation__FailedRuleForCardinalityMoreThanNeeded", \
47     "LevelValidation__FailedGenericAvpRuleForCardinalityFoundDisregardedItem", \
48     "LevelValidation__FoundDisregardedItemsAndGenericAVPWasNotSpecified", \
49     NULL /* list end indicator */
50                                                               };
51
52