#include <string>
#include <typeinfo>
#include <cassert>
#include "detail/partshell.h"
#include "cxx0x.h"
#include "part.h"
#include "class.h"
Go to the source code of this file.
#define wallaroo_within |
( |
|
C | ) |
|
This preamble creates a scope in which every statement use()
.as().of() will use the catalog C
withouth the need to specify it every time. So, this code:
Catalog myCatalog;
...
wallaroo_within( myCatalog )
{
use(
"f136e" ).
as(
"engine" ).
of(
"ferrari_f430" );
use(
"m139p" ).
as(
"engine" ).
of(
"maserati_granturismo" );
}
is equivalent to:
Catalog myCatalog;
...
use( myCatalog[ "f136e" ] ).as( "engine" ).of( myCatalog[ "ferrari_f430" ] );
use( myCatalog[
"m139p" ] ).
as(
"engine" ).
of( myCatalog[
"maserati_granturismo" ] );