CSEngine
Loading...
Searching...
No Matches
CSE::ReflectionObject Class Reference
Inheritance diagram for CSE::ReflectionObject:
CSE::SComponent CSE::SResource CSE::AnimatorComponent CSE::CameraComponent CSE::CustomComponent CSE::DrawableStaticMeshComponent CSE::JointComponent CSE::LightComponent CSE::RenderComponent CSE::TransformComponent CSE::Animation CSE::GLProgramHandle CSE::SFrameBuffer CSE::SISurface CSE::SMaterial CSE::SPrefab CSE::SScriptObject CSE::SShaderGroup CSE::STexture CSE::Skeleton

Public Member Functions

 ReflectionObject (std::string type)
 
void SetClassType (std::string type)
 
const char * GetClassType () const
 
bool IsSameClass (const char *classType) const
 

Static Public Member Functions

static ReflectionObjectNewObject (const std::string &name)
 

Protected Attributes

std::string m_class
 

Detailed Description

Definition at line 9 of file ReflectionObject.h.

Constructor & Destructor Documentation

◆ ReflectionObject()

CSE::ReflectionObject::ReflectionObject ( std::string type)
inlineexplicit

Definition at line 13 of file ReflectionObject.h.

13: m_class(std::move(type)) {}

Member Function Documentation

◆ GetClassType()

const char * CSE::ReflectionObject::GetClassType ( ) const
inline

Definition at line 21 of file ReflectionObject.h.

21 {
22 return m_class.c_str();
23 }

◆ IsSameClass()

bool CSE::ReflectionObject::IsSameClass ( const char * classType) const
inline

Definition at line 25 of file ReflectionObject.h.

25 {
26 return std::equal(m_class.begin(), m_class.end(), classType);
27 }

◆ NewObject()

static ReflectionObject * CSE::ReflectionObject::NewObject ( const std::string & name)
inlinestatic

Definition at line 29 of file ReflectionObject.h.

29 {
30 return CORE->GetReflectionMgrCore()->CreateObject(name);
31 }

◆ SetClassType()

void CSE::ReflectionObject::SetClassType ( std::string type)
inline

Definition at line 17 of file ReflectionObject.h.

17 {
18 m_class = std::move(type);
19 }

Member Data Documentation

◆ m_class

std::string CSE::ReflectionObject::m_class
protected

Definition at line 34 of file ReflectionObject.h.


The documentation for this class was generated from the following file: