7#ifndef __PHOENIX_FIELD_H__
8#define __PHOENIX_FIELD_H__
13#include "parser_yml.h"
16void phoenix_field(
size_t & fieldId,
size_t & fieldType,
char*& iter);
27 memcpy(&val, iter,
sizeof(val));
Configuration to be used to create a field from a yml file.
FieldType
Type of the Field.
FieldConfig phoenix_createField(FieldType::FieldType type, size_t id, const PString &name, bool isArray=false)
Create a FieldConfig.
bool phoenix_parseFieldConfig(FieldConfig &field, const PPath &fileName, const PString &fieldConfigKey="field_config")
Parse a yml file and search for a field_config key.
void phoenix_printFieldMessage(const char *message, size_t nbByte)
Print the Fields in a message.
T phoenix_readValue(char *&iter)
Read a value.
void phoenix_field(size_t &fieldId, size_t &fieldType, char *&iter)
Reads a Field header.
void phoenix_fieldPrint(char *&iter, size_t fieldType, const char *message)
Print the current field.
void phoenix_fieldSkip(char *&iter, size_t fieldType)
Skip the current field.