ug4
ug::bridge::ExportedConstructor Class Reference

describing information for constructor More...

#include <class.h>

Public Types

typedef void *(* ProxyFunc) (const ParameterStack &in)
 

Public Member Functions

bool check_consistency (std::string classname) const
 returns true if all parameters of the function are correctly declared More...
 
void * create (const ParameterStack &paramsIn) const
 executes the function More...
 
template<typename TFunc >
void create_parameter_stack ()
 
 ExportedConstructor (ProxyFunc pf, const std::string &className, const std::string &options, const std::string &paramInfos, const std::string &tooltip, const std::string &help)
 
const std::string & help () const
 help informations More...
 
size_t num_infos (size_t i) const
 number of info strings for one parameter More...
 
size_t num_parameter () const
 number of parameters. More...
 
const std::string & options () const
 options More...
 
const std::string & parameter_info (size_t i, size_t j) const
 type info of all parameters More...
 
const std::string & parameter_info_string () const
 whole string of all type infos for of all parameters More...
 
const std::vector< std::string > & parameter_info_vec (size_t i) const
 type info of i th parameters More...
 
const std::string & parameter_name (size_t i) const
 name of parameter i More...
 
ParameterInfoparams_in ()
 non-const export of param list More...
 
const ParameterInfoparams_in () const
 parameter list for input values More...
 
const std::string & tooltip () const
 gives some information to the exported functions More...
 

Protected Member Functions

void tokenize (const std::string &str, std::vector< std::string > &tokens, const char delimiter)
 

Private Attributes

std::string m_className
 name of class constructed More...
 
std::string m_help
 
std::string m_options
 options More...
 
std::string m_paramInfos
 string with Infos about parameter More...
 
ParameterInfo m_paramsIn
 
ProxyFunc m_proxy_func
 proxy function to call method More...
 
std::string m_tooltip
 
std::vector< std::vector< std::string > > m_vvParamInfo
 tokenized strings for each Parameter and each Info (name | style | options | ...) More...
 

Detailed Description

describing information for constructor

Member Typedef Documentation

◆ ProxyFunc

typedef void*(* ug::bridge::ExportedConstructor::ProxyFunc) (const ParameterStack &in)

Constructor & Destructor Documentation

◆ ExportedConstructor()

ug::bridge::ExportedConstructor::ExportedConstructor ( ProxyFunc  pf,
const std::string &  className,
const std::string &  options,
const std::string &  paramInfos,
const std::string &  tooltip,
const std::string &  help 
)

Member Function Documentation

◆ check_consistency()

bool ug::bridge::ExportedConstructor::check_consistency ( std::string  classname) const

returns true if all parameters of the function are correctly declared

References ug::bridge::ParameterInfo::parameter_named(), params_in(), ug::bridge::ParameterInfo::size(), and UG_ERR_LOG.

Referenced by ug::bridge::Registry::check_consistency().

◆ create()

void* ug::bridge::ExportedConstructor::create ( const ParameterStack paramsIn) const
inline

◆ create_parameter_stack()

template<typename TFunc >
void ug::bridge::ExportedConstructor::create_parameter_stack ( )
inline

◆ help()

const std::string& ug::bridge::ExportedConstructor::help ( ) const
inline

help informations

Referenced by ug::vrl::constructor2NativeConstructor().

◆ num_infos()

size_t ug::bridge::ExportedConstructor::num_infos ( size_t  i) const
inline

number of info strings for one parameter

◆ num_parameter()

size_t ug::bridge::ExportedConstructor::num_parameter ( ) const
inline

number of parameters.

Referenced by ug::vrl::params2NativeParams().

◆ options()

const std::string& ug::bridge::ExportedConstructor::options ( ) const
inline

◆ parameter_info()

const std::string& ug::bridge::ExportedConstructor::parameter_info ( size_t  i,
size_t  j 
) const
inline

type info of all parameters

◆ parameter_info_string()

const std::string& ug::bridge::ExportedConstructor::parameter_info_string ( ) const
inline

whole string of all type infos for of all parameters

◆ parameter_info_vec()

const std::vector<std::string>& ug::bridge::ExportedConstructor::parameter_info_vec ( size_t  i) const
inline

type info of i th parameters

Referenced by ug::vrl::params2NativeParams().

◆ parameter_name()

const std::string& ug::bridge::ExportedConstructor::parameter_name ( size_t  i) const
inline

name of parameter i

◆ params_in() [1/2]

ParameterInfo& ug::bridge::ExportedConstructor::params_in ( )
inline

non-const export of param list

◆ params_in() [2/2]

const ParameterInfo& ug::bridge::ExportedConstructor::params_in ( ) const
inline

◆ tokenize()

void ug::bridge::ExportedConstructor::tokenize ( const std::string &  str,
std::vector< std::string > &  tokens,
const char  delimiter 
)
protected

References ug::TrimString().

Referenced by ExportedConstructor().

◆ tooltip()

const std::string& ug::bridge::ExportedConstructor::tooltip ( ) const
inline

gives some information to the exported functions

Referenced by ug::vrl::constructor2NativeConstructor().

Member Data Documentation

◆ m_className

std::string ug::bridge::ExportedConstructor::m_className
private

name of class constructed

◆ m_help

std::string ug::bridge::ExportedConstructor::m_help
private

◆ m_options

std::string ug::bridge::ExportedConstructor::m_options
private

options

◆ m_paramInfos

std::string ug::bridge::ExportedConstructor::m_paramInfos
private

string with Infos about parameter

Referenced by ExportedConstructor().

◆ m_paramsIn

ParameterInfo ug::bridge::ExportedConstructor::m_paramsIn
private

◆ m_proxy_func

ProxyFunc ug::bridge::ExportedConstructor::m_proxy_func
private

proxy function to call method

◆ m_tooltip

std::string ug::bridge::ExportedConstructor::m_tooltip
private

◆ m_vvParamInfo

std::vector<std::vector<std::string> > ug::bridge::ExportedConstructor::m_vvParamInfo
private

tokenized strings for each Parameter and each Info (name | style | options | ...)

Referenced by ExportedConstructor().


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