IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
StripParserHdrMacros.h
Go to the documentation of this file.
1 // StripParserHdrMacros.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_STRIPPARSERHDRMACROS_H__
16 #define __IPSDKIMAGEPROCESSING_STRIPPARSERHDRMACROS_H__
17 
19 #include <boost/preprocessor/cat.hpp>
20 
22 // Macros allowing to retrieve variable name associated to a given parser type
24 
28 #define IPSDK_PARSER_NAME_RAWSTRIP(attributeName) \
29  BOOST_PP_CAT(_p, BOOST_PP_CAT(attributeName, Buf))
30 
34 #define IPSDK_PARSER_NAME_RGBRAWSTRIP(attributeName) \
35  BOOST_PP_CAT(_p, BOOST_PP_CAT(attributeName, Buf))
36 
40 #define IPSDK_PARSER_NAME_LINESTRIP(attributeName) \
41  BOOST_PP_CAT(_p, BOOST_PP_CAT(attributeName, Buf))
42 
44 // Macros allowing to retrieve data parser type associated to a parsing mode
46 
50 #define IPSDK_PARSER_TYPE_RAWSTRIP(attributeName) \
51  ipsdk::imaproc::StripParserInfo<ipsdk::imaproc::RawStripParserMode, attributeName::BaseStripAttributeClassType>::BaseParserType
52 
56 #define IPSDK_PARSER_TYPE_RGBRAWSTRIP(attributeName) \
57  ipsdk::imaproc::StripParserInfo<ipsdk::imaproc::RgbRawStripParserMode, attributeName::BaseStripAttributeClassType>::BaseParserType
58 
62 #define IPSDK_PARSER_TYPE_LINESTRIP(attributeName) \
63  ipsdk::imaproc::StripParserInfo<ipsdk::imaproc::LineStripParserMode, attributeName::BaseStripAttributeClassType>::BaseParserType
64 
66 // Macros allowing to create a data parser associated to a parsing mode
68 
72 #define IPSDK_PARSER_CREATE_RAWSTRIP(attributeName) \
73  IPSDK_PARSER_NAME_RAWSTRIP(attributeName) = \
74  ipsdk::imaproc::StripParserInfo<ipsdk::imaproc::RawStripParserMode, attributeName::BaseStripAttributeClassType>::createParser(BOOST_PP_CAT(_p, attributeName));
75 
79 #define IPSDK_PARSER_CREATE_RGBRAWSTRIP(attributeName) \
80  IPSDK_PARSER_NAME_RAWSTRIP(attributeName) = \
81  ipsdk::imaproc::StripParserInfo<ipsdk::imaproc::RgbRawStripParserMode, attributeName::BaseStripAttributeClassType>::createParser(BOOST_PP_CAT(_p, attributeName));
82 
86 #define IPSDK_PARSER_CREATE_LINESTRIP(attributeName) \
87  IPSDK_PARSER_NAME_LINESTRIP(attributeName) = \
88  ipsdk::imaproc::StripParserInfo<ipsdk::imaproc::LineStripParserMode, attributeName::BaseStripAttributeClassType>::createParser(BOOST_PP_CAT(_p, attributeName));
89 
92 
93 #endif // __IPSDKIMAGEPROCESSING_STRIPPARSERHDRMACROS_H__
Macros set for strip parser information management.