VL
Public Types | Public Member Functions | Protected Attributes | List of all members
TypeResolver Class Reference

#include <TypeResolver.h>

Public Types

typedef std::function< std::string(const vl::Object &object)> FGetTypeId
 
typedef std::function< vl::Object &(const std::string &protoId)> FGetProto
 

Public Member Functions

 TypeResolver ()=default
 
 TypeResolver (const FGetTypeId &fGetTypeId, const FGetProto &fGetProto)
 
 operator bool () const
 
std::string GetTypeId (const vl::Object &object) const
 
const vl::ObjectGetProto (const std::string &protoId) const
 

Protected Attributes

FGetTypeId mGetTypeId = nullptr
 
FGetProto mGetProto = nullptr
 

Member Typedef Documentation

◆ FGetProto

typedef std::function<vl::Object& (const std::string& protoId)> TypeResolver::FGetProto

◆ FGetTypeId

typedef std::function<std::string(const vl::Object& object)> TypeResolver::FGetTypeId

Constructor & Destructor Documentation

◆ TypeResolver() [1/2]

TypeResolver::TypeResolver ( )
default

◆ TypeResolver() [2/2]

TypeResolver::TypeResolver ( const FGetTypeId fGetTypeId,
const FGetProto fGetProto 
)

Member Function Documentation

◆ GetProto()

const vl::Object & TypeResolver::GetProto ( const std::string &  protoId) const

◆ GetTypeId()

std::string TypeResolver::GetTypeId ( const vl::Object object) const

◆ operator bool()

TypeResolver::operator bool ( ) const

Member Data Documentation

◆ mGetProto

FGetProto TypeResolver::mGetProto = nullptr
protected

◆ mGetTypeId

FGetTypeId TypeResolver::mGetTypeId = nullptr
protected

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