Wallaroo  0.8
Macros
registered.h File Reference
#include "class.h"
#include "collaborator.h"
#include "attribute.h"
#include "part.h"

Go to the source code of this file.

Macros

#define WALLAROO_REGISTER_NAME(N, C,...)
 
#define WALLAROO_REGISTER(C,...)
 

Macro Definition Documentation

#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
CThe 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
NThe class id
CThe class name
...The type of the other parameters of the class constructor