cgv
cgv::base::factory_registration_2< T, CA1, CA2 > Struct Template Reference

convenience class to register a factory of the given class type that uses a constructor with one argument of type CA More...

#include <register.h>

Public Member Functions

 factory_registration_2 (const std::string &_created_type_name, const CA1 &_ca1, const CA2 &_ca2, const std::string &_options="", bool _is_singleton=false, const std::string &_object_options="")
 this registers an instance of a standard factory implementation More...
 

Detailed Description

template<class T, typename CA1, typename CA2>
struct cgv::base::factory_registration_2< T, CA1, CA2 >

convenience class to register a factory of the given class type that uses a constructor with one argument of type CA

Constructor & Destructor Documentation

◆ factory_registration_2()

template<class T , typename CA1 , typename CA2 >
cgv::base::factory_registration_2< T, CA1, CA2 >::factory_registration_2 ( const std::string &  _created_type_name,
const CA1 &  _ca1,
const CA2 &  _ca2,
const std::string &  _options = "",
bool  _is_singleton = false,
const std::string &  _object_options = "" 
)
inline

this registers an instance of a standard factory implementation

parameters:

  • _ca1, _ca2 ... arguments passed to the constructor of the created instances
    • _created_type_name ... name of the type of the instances created by the factory

_options ... semicolon separated options used to register the factory. For gui integration these can include assignments to "menu_path" and "shortcut"

  • _is_singleton ... whether the factory can create only one instance
    • _object_options ... options used to register created instances

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