X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FListParser.hh;h=817ba4827777607bfbf4a9431edb6b0feebf9e80;hb=b2689b6d92c4d22ecaea5ab271c0af8564a7d39b;hp=0382caa4a5f5d7d6c40d209bb74ead330b07d909;hpb=7baaacae27c02c86ceda5c7ee41d3172d1e23ffa;p=senf.git diff --git a/Packets/ListParser.hh b/Packets/ListParser.hh index 0382caa..817ba48 100644 --- a/Packets/ListParser.hh +++ b/Packets/ListParser.hh @@ -23,8 +23,8 @@ /** \file \brief ListParser public header */ -#ifndef HH_ListParser_ -#define HH_ListParser_ 1 +#ifndef HH_SENF_Packets_ListParser_ +#define HH_SENF_Packets_ListParser_ 1 // Custom includes #include @@ -229,7 +229,7 @@ namespace senf { // The size field should be declared private or read-only (size is accessible via the list) SENF_PARSER_PRIVATE_FIELD ( list_size_, senf::UInt16Parser ); // Define the list - SENF_PARSER_VECTOR ( list, list_size_, EltParser ); + SENF_PARSER_LIST ( list, list_size_, EltParser ); \endcode Here \c EltParser can be an arbitrary parser and need not have a fixed size. @@ -267,7 +267,7 @@ namespace senf { The tags are applied to the \a size parameter: \code - SENF_PARSER_LIST ( vec, transform(MyTransform, list_size_), EltParser ); + SENF_PARSER_LIST ( list, transform(MyTransform, list_size_), EltParser ); \endcode \warning There are some caveats when working with \c bytes() type lists: @@ -305,8 +305,8 @@ namespace senf { ///////////////////////////////hh.e//////////////////////////////////////// #endif -#if !defined(HH_Packets__decls_) && !defined(HH_ListParser_i_) -#define HH_ListParser_i_ +#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_ListParser_i_) +#define HH_SENF_Packets_ListParser_i_ //#include "ListParser.cci" #include "ListParser.ct" #include "ListParser.cti"