neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
i_object.hpp File Reference
#include <boost/algorithm/string/replace.hpp>
#include <neolib/neolib.hpp>
#include <neolib/core/i_string.hpp>
#include <neolib/app/i_object.hpp>
#include <neogfx/core/object_type.hpp>

Go to the source code of this file.

Classes

class  neogfx::i_object
 

Namespaces

namespace  neogfx
 

Macros

#define meta_object(...)
 

Functions

std::string neogfx::class_names (i_object const &aObject)
 

Macro Definition Documentation

◆ meta_object

#define meta_object (   ...)
Value:
typedef __VA_ARGS__ base_type; \
public: \
void class_name(neolib::i_string& aClassName) const override \
{ \
auto temp = boost::typeindex::type_id<decltype(*this)>().pretty_name(); \
boost::replace_all(temp, "::", "--"); \
aClassName.append(temp); \
aClassName.append(":"sv); \
base_type::class_name(aClassName); \
}

Definition at line 28 of file i_object.hpp.