1#include "debug_reflection_handler.h"
9std::string debug_reflection_handler::extend_name(
const std::string& name)
const
36 if (group_kind != GK_BASE_CLASS) {
37 output += extend_name(group_name);
70 tab = tab.substr(0, tab.size()-2);
76 output += extend_name(member_name);
102 for (
unsigned i=0; i<param_value_traits.size(); ++i) {
103 output += param_value_traits[i]->get_type_name();
104 if (i+1 < param_value_traits.size())
bool reflect_method_void(const std::string &method_name, method_interface *mi_ptr, abst_reflection_traits *return_traits, const std::vector< abst_reflection_traits * > ¶m_value_traits)
empty implementation
std::string output
contains the description in form of a string
void reflect_group_end(GroupKind group_kind)
abstract interface to start reflection of a group of members
int reflect_group_begin(GroupKind group_kind, const std::string &group_name, void *group_ptr, abst_reflection_traits *rt, unsigned grp_size)
abstract interface to start reflection of a group of members.
bool reflect_member_void(const std::string &member_name, void *member_ptr, abst_reflection_traits *rt)
abstract interface to reflect a member variable, where the member type is specified as a string.
std::vector< nesting_info > nesting_info_stack
stack of nesting_info used during the reflection process
GroupKind
different support group types
static const char * group_kind_name(GroupKind gk)
return the group kind as a string
@ TI_STRING
wide character type
namespace for compile time type information
std::string to_string(const std::string &v, unsigned int w, unsigned int p, bool)
specialization of conversion from string to strings
std::string escape_special(const std::string &s)
escapes the C++ special characters \a, \b, \f, \n, \r, \t, \v, \\', \", \\, \?
Helper functions to process strings.
abstract interface for type reflection with basic type management and optional string conversion
virtual bool has_string_conversions() const
whether type can be converted to string, defaults to false
virtual cgv::type::info::TypeId get_type_id() const =0
return the type id
virtual const char * get_type_name() const =0
return the type name
virtual void get_to_string(const void *instance_ptr, std::string &str_val)
convert given instance into a string value
abstract interface to call a method of a given instance.