1#include "io_reflection_handler.h"
9enum_reflection_traits<IOReflectionError> get_reflection_traits(
const IOReflectionError&) {
10 return enum_reflection_traits<IOReflectionError>(
"RE_NO_ERROR, RE_FILE_OPEN_ERROR, RE_FILE_READ_ERROR, RE_FILE_WRITE_ERROR, RE_CONTENT_MISMATCH, RE_VERSION_MISMATCH");
13io_reflection_handler::io_reflection_handler(
const std::string& _content,
unsigned _ver)
15 file_content = _content;
18 last_error = RE_NO_ERROR;
22bool io_reflection_handler::failed()
const
24 return last_error != RE_NO_ERROR;
34 static const char* error_messages[] =
43 return error_messages[re];
bool reflect_method_void(const std::string &method_name, cgv::reflect::method_interface *mi_ptr, cgv::reflect::abst_reflection_traits *return_traits, const std::vector< cgv::reflect::abst_reflection_traits * > ¶m_value_traits)
abstract interface to reflect a method, where return and parameter types are specified as strings.
namespace for data management components
IOReflectionError
different error codes
in this namespace reflection of types is implemented
this header is dependency free
Helper functions to process strings.
abstract interface for type reflection with basic type management and optional string conversion
abstract interface to call a method of a given instance.