0504 런타임리플렉션type index로바꾸기
그냥 나중에 이 라이브러리 쓰자....
https://github.com/rttrorg/rttr
// ========================================================= //
https://en.cppreference.com/w/cpp/types/type_index
if문에다 조건 추가하지 말고
벡터나 맵에다가 추가하기
* 이 타입이 상속받는 대분류 클래스는 무엇인가?
* 이 타입은 GUI로 분류되는가?
* 이 타입은 콘테이너인가?
* 이 타입은 스크롤콘테이너인가?
* 이 타입은 슬라이더인가?
// 바로 위 클래스 얻기
std::unordered_map<std::type_index, std::type_index>
ParentClassMap{};
ParentClassMap[std::type_index(typeid(Sprite2D))] =
std::type_index(typeid(IObject2D));
// 대분류 클래스 얻기 (값은 IObject, IObject2D, IObject3D, IControl뿐임)
std::unordered_map<std::type_index, std::type_index>
SectionClassMap{};
SectionClassMap[std::type_index(typeid(HContainer))] =
std::type_index(typeid(IControl));