| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #ifndef __PHOENIX_FIELD_H__ | ||
| 8 | #define __PHOENIX_FIELD_H__ | ||
| 9 | |||
| 10 | #include <iostream> | ||
| 11 | #include "PPath.h" | ||
| 12 | |||
| 13 | #include "parser_yml.h" | ||
| 14 | #include "AbtractField.h" | ||
| 15 | |||
| 16 | void phoenix_field(size_t & fieldId, size_t & fieldType, char*& iter); | ||
| 17 | void phoenix_fieldSkip(char*& iter, size_t fieldType); | ||
| 18 | void phoenix_fieldPrint(char*& iter, size_t fieldType, const char * message); | ||
| 19 | |||
| 20 | ///Read a value | ||
| 21 | /** @param[out] iter : message iterator | ||
| 22 | * @return corresponding value | ||
| 23 | */ | ||
| 24 | template<typename T> | ||
| 25 | 1 | T phoenix_readValue(char*& iter){ | |
| 26 | T val; | ||
| 27 | 1 | memcpy(&val, iter, sizeof(val)); | |
| 28 | 1 | iter += sizeof(val); | |
| 29 | 1 | return val; | |
| 30 | } | ||
| 31 | |||
| 32 | FieldConfig phoenix_createField(FieldType::FieldType type, size_t id, const PString & name, bool isArray = false); | ||
| 33 | |||
| 34 | bool phoenix_parseFieldConfig(FieldConfig & field, const PPath & fileName, const PString & fieldConfigKey = "field_config"); | ||
| 35 | bool phoenix_parseFieldConfig(FieldConfig & field, const DicoValue & dico, const PString & fieldConfigKey); | ||
| 36 | bool phoenix_parseFieldConfig(FieldConfig & field, const DicoValue & dico); | ||
| 37 | |||
| 38 | void phoenix_printFieldMessage(const char * message, size_t nbByte); | ||
| 39 | void phoenix_printFieldMessage(const char * message, size_t nbByte, size_t offset); | ||
| 40 | |||
| 41 | |||
| 42 | #endif | ||
| 43 |