rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

macros.h File Reference

Declaration of usefull macros. More...

#include <ilviews/macros.h>
#include <ilviews/base/gcontext.h>

Defines

#define IlvMapsDeclareProjectionIO(className)
 Declare all functions and data members to support persistence.
#define IlvMapsDefineBasicProjectionIO(className,superClassName,projectionName,constructorStatement,initializationStatement)
 Defines a default implementation of projection IO features.
#define IlvMapsDefineProjectionIO(className,superClassName,projectionName,constructorStatement,initializationStatement)
 Defines a default implementation of projection IO features.
#define IlvMapsInitProjectionIO(className)
 Initialize projection IO features.

Functions

void IlvMapsEmptyStatement ()
 A default empty statement.

Detailed Description

Declaration of usefull macros.

[library ilvmaps ilviews/maps/macros.h]


Define Documentation

#define IlvMapsDeclareProjectionIO ( className   ) 

Declare all functions and data members to support persistence.

Use this macro in the declaration of a projection class. It generates all necessary functions and data members to support persistence.

Parameters:
className The class name.
See also:
IlvMapsDefineProjectionIO, IlvMapsDefineBasicProjectionIO.
#define IlvMapsDefineBasicProjectionIO ( className,
superClassName,
projectionName,
constructorStatement,
initializationStatement   ) 

Defines a default implementation of projection IO features.

This is the same macro as IlvMapsDefineProjectionIO, but it is used for projections that do not save any additional data. It also generates the code for the stream constructor.

Parameters:
className The name of the projection class.
superClassName The name of the superclass of the projection.
projectionName The name of the projection. This name is used to initialize the IlvProjectionClassInfo's projection name.
constructorStatement The statement used to create a new instance of the projection. This statement will be used by the IlvProjectionDictionary::CreateFunction method to create instances of the projection class.
initializationStatement Any statement that you need to execute during the projection class initialization. This statement is generally used to initialize the accessors or to register new error messages. If no statement is required for your class, you can use the IlvMapsEmptyStatement function here.
See also:
IlvMapsDeclareProjectionIO, IlvMapsDefineProjectionIO.
#define IlvMapsDefineProjectionIO ( className,
superClassName,
projectionName,
constructorStatement,
initializationStatement   ) 

Defines a default implementation of projection IO features.

Use this macro in the implementation file of a projection to enable the initialization of the projection IO features.

Parameters:
className The name of the projection class.
superClassName The name of the superclass of the projection.
projectionName The name of the projection. This name is used to initialize the IlvProjectionClassInfo's projection name.
constructorStatement The statement used to create a new instance of the projection. This statement will be used by the IlvProjectionDictionary::CreateFunction method to create instances of the projection class.
initializationStatement Any statement that you need to execute during the projection class initialization. This statement is generally used to initialize the accessors or to register new error messages. If no statement is required for your class, you can use the IlvMapsEmptyStatement function here.
See also:
IlvMapsDeclareProjectionIO, IlvMapsDefineBasicProjectionIO.
#define IlvMapsInitProjectionIO ( className   ) 

Initialize projection IO features.

Use this macro in the header file of a projection, after the class declaration, to enable the initialization of the projection IO features.

Parameters:
className The class name.

Function Documentation

void IlvMapsEmptyStatement (  ) 

A default empty statement.

A default empty statement that can be used in the IlvMapsDefineProjectionIO and IlvMapsDefineBasicProjectionIO macros.

See also:
IlvMapsDefineProjectionIO, IlvMapsDefineBasicProjectionIO.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.