KiCad PCB EDA Suite
Loading...
Searching...
No Matches
property_mgr.h File Reference
#include <core/wx_stl_compat.h>
#include <wx/string.h>
#include <functional>
#include <list>
#include <map>
#include <unordered_map>
#include <set>
#include <vector>
#include <memory>
#include <eda_units.h>

Go to the source code of this file.

Classes

class  PROPERTY_COMMIT_HANDLER
 
class  PROPERTY_MANAGER
 Provide class metadata.Helper macro to map type hashes to names. More...
 
struct  PROPERTY_MANAGER::CLASS_INFO
 
struct  PROPERTY_MANAGER::CLASS_DESC
 Returns metadata for a specific type. More...
 

Macros

#define REGISTER_TYPE(x)   PROPERTY_MANAGER::Instance().RegisterType(TYPE_HASH(x), TYPE_NAME(x))
 

Typedefs

using TYPE_ID = size_t
 Unique type identifier.
 
using PROPERTY_LISTENER = std::function< void(INSPECTABLE *, PROPERTY_BASE *, COMMIT *)>
 

Macro Definition Documentation

◆ REGISTER_TYPE

#define REGISTER_TYPE (   x)    PROPERTY_MANAGER::Instance().RegisterType(TYPE_HASH(x), TYPE_NAME(x))

Definition at line 351 of file property_mgr.h.

Typedef Documentation

◆ PROPERTY_LISTENER

using PROPERTY_LISTENER = std::function<void( INSPECTABLE*, PROPERTY_BASE*, COMMIT* )>

Definition at line 49 of file property_mgr.h.

◆ TYPE_ID

using TYPE_ID = size_t

Unique type identifier.

Definition at line 47 of file property_mgr.h.