libfoedus-core
FOEDUS Core Library
externalizable.hpp File Reference
#include <stdint.h>
#include <iosfwd>
#include <string>
#include <vector>
#include "foedus/cxx11.hpp"
#include "foedus/error_stack.hpp"
#include "foedus/assorted/assorted_func.hpp"
#include "foedus/assorted/fixed_string.hpp"
#include "foedus/fs/fwd.hpp"
Include dependency graph for externalizable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  foedus::externalize::Externalizable
 Represents an object that can be written to and read from files/bytes in XML format. More...
 

Namespaces

 tinyxml2
 
 foedus
 Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
 
 foedus::externalize
 Object Externalization.
 

Macros

#define EX_QUOTE(str)   #str
 
#define EX_EXPAND(str)   EX_QUOTE(str)
 
#define EXTERNALIZE_SAVE_ELEMENT(element, attribute, comment)   CHECK_ERROR(add_element(element, EX_EXPAND(attribute), comment, attribute))
 Adds an xml element to represent a member variable of this object. More...
 
#define EXTERNALIZE_SAVE_ENUM_ELEMENT(element, attribute, comment)   CHECK_ERROR(add_enum_element(element, EX_EXPAND(attribute), comment, attribute))
 Adds an xml element to represent a member variable of this object. More...
 
#define EXTERNALIZE_LOAD_ELEMENT(element, attribute)   CHECK_ERROR(get_element(element, EX_EXPAND(attribute), & attribute))
 Reads a child xml element to load a member variable of this object. More...
 
#define EXTERNALIZE_LOAD_ELEMENT_OPTIONAL(element, attribute, default_value)   CHECK_ERROR(get_element(element, EX_EXPAND(attribute), & attribute, true, default_value))
 Reads a child xml element to load a member variable of this object. More...
 
#define EXTERNALIZE_LOAD_ENUM_ELEMENT(element, attribute)   CHECK_ERROR(get_enum_element(element, EX_EXPAND(attribute), & attribute))
 Reads a child xml element to load a member variable of this object. More...
 
#define EXTERNALIZE_LOAD_ENUM_ELEMENT_OPTIONAL(element, attribute, default_value)   CHECK_ERROR(get_enum_element(element, EX_EXPAND(attribute), & attribute, true, default_value))
 Reads a child xml element to load a member variable of this object. More...
 
#define EXTERNALIZABLE(clazz)
 Macro to declare/define essential methods for an externalizable class. More...
 

Macro Definition Documentation

#define EX_EXPAND (   str)    EX_QUOTE(str)

Definition at line 223 of file externalizable.hpp.

#define EX_QUOTE (   str)    #str

Definition at line 222 of file externalizable.hpp.