X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseList.hh;h=80a5d89c4d8d113fd4c864e5f3959cc613df5a8f;hb=a3d3979b7daaf22ea63ca356edbfa8047dff7b78;hp=4927be2bee4f984660bafb43122dd04f366fa74a;hpb=47368f306a577d1e46df69a7f729bd3893cbe5e7;p=senf.git diff --git a/Packets/ParseList.hh b/Packets/ParseList.hh index 4927be2..80a5d89 100644 --- a/Packets/ParseList.hh +++ b/Packets/ParseList.hh @@ -89,7 +89,6 @@ namespace senf { This class shows the interface which must be implemented by a list policy. It is not a list policy only a declaration of the interface: \code - tempalte struct ExampleListPolicy { // optional typedefs used to simplify all other declarations @@ -138,6 +137,19 @@ namespace senf { typedef PacketParserBase::state_type state_type; typedef PacketParserBase::size_type size_type; + typedef void element_type; ///< Type of list elements + /**< This is the parser used to parse the list elements. */ + typedef void parser_type; ///< List parser type + /**< parser_type is the list parser used to parse a list of + this type, + e.g. senf::Parse_List. */ + typedef void container_type; ///< Type of container wrapper + /**< This is the container wrapper of the list, e.g. + Parse_List_Container. The + container may however use a \e different policy, as + long as that policy is constructible from the parser + policy. */ + static const size_type init_bytes = 0; ///< Size of a new list of this type /**< Initial size which needs to be allocated to this type of list */ @@ -316,6 +328,9 @@ namespace senf { } ///////////////////////////////hh.e//////////////////////////////////////// +#endif +#if !defined(SENF_PACKETS_DECL_ONLY) && !defined(HH_ParseList_i_) +#define HH_ParseList_i_ //#include "ParseList.cci" #include "ParseList.ct" #include "ParseList.cti"