#include "MRMeshFwd.h"
#include "MRPch/MRBindingMacros.h"
#include <memory>
#include <string>
Go to the source code of this file.
|
| namespace | MR |
| |
| #define | MR_ADD_CLASS_FACTORY(className) static MR::ObjectFactory<className> className##_Factory_{ #className }; |
| | use this macro to register a class in the factory before calling createObject
|
| |
| MRMESH_API std::shared_ptr< Object > | MR::createObject (const std::string &className) |
| | the function to create new object instance by registered class name
|
| |
◆ MR_ADD_CLASS_FACTORY
| #define MR_ADD_CLASS_FACTORY |
( |
| className | ) |
static MR::ObjectFactory<className> className##_Factory_{ #className }; |
use this macro to register a class in the factory before calling createObject