#include "wibmod/WIB1/ItemConversion.hh"
#include <stdio.h>
#include <boost/foreach.hpp>
#include "wibmod/WIB1/conversions-impl.hh"
Go to the source code of this file.
|
| itemconv::DEFINE_CONVERSION_CLASS (pass,(public:void init(unordered_map< std::string, std::string > params) {(void) params;data_size=sizeof(uint32_t);data_description="i";} void Convert(uint32_t src, void *dest) { uint32_t *val=(uint32_t *) dest;*val=src;})) DEFINE_CONVERSION_CLASS(linear |
|
void | itemconv::init (unordered_map< std::string, std::string > params) |
|
void | itemconv::Convert (uint32_t src, void *dest) |
|
◆ ARGS
◆ DEFINE_CONVERSION_CLASS [1/2]
#define DEFINE_CONVERSION_CLASS |
( |
| name, |
|
|
| body ) |
Value:
Definition at line 21 of file conversions.cpp.
21#define DEFINE_CONVERSION_CLASS(name,body) \
22class itemconv_##name : public ItemConversion { STRIP(body) };
◆ DEFINE_CONVERSION_CLASS [2/2]
#define DEFINE_CONVERSION_CLASS |
( |
| name, |
|
|
| body ) |
Value: if (fnname==#name) { \
itemconv::itemconv_##name *c = new itemconv::itemconv_##name(); \
c->init(params); return c; }
Definition at line 21 of file conversions.cpp.
21#define DEFINE_CONVERSION_CLASS(name,body) \
22class itemconv_##name : public ItemConversion { STRIP(body) };
◆ EXPAND
◆ STRIP