#include "class.h"
#include "collaborator.h"
#include "attribute.h"
#include "part.h"
Go to the source code of this file.
#define WALLAROO_REGISTER |
( |
|
C, |
|
|
|
... |
|
) |
| |
This macro must be used in your implementation file (.cpp or .cc) to register a class. When a class is registered, you can create an instance using Catalog::Create(const std::string&,const std::string&,const P1&,const P2&).
- Parameters
-
C | The class name |
... | The type of the other parameters of the class constructor |
#define WALLAROO_REGISTER_NAME |
( |
|
N, |
|
|
|
C, |
|
|
|
... |
|
) |
| |
This macro can be used in your implementation file (.cpp or .cc) instead of WALLAROO_REGISTER to register a class specifying the ID. When a class is registered, you can create an instance using Catalog::Create(const std::string&,const std::string&,const P1&,const P2&).
- Parameters
-
N | The class id |
C | The class name |
... | The type of the other parameters of the class constructor |