All Frameworks  Class Hierarchy  This Framework  Indexes

VPMInterfaces Macro ENOVRegisterPackage

Macro ENOVRegisterPackage (schema)
Defines a package named schema.
Role: any business domain (e.g: ACTION, PRODUCT, etc) may have an associated package. This package contains all metadata declarations concerning methods of the package's classes:
Example:
#define IMPLEMENTS_REGISTRY
// IMLEMENTS_REGISTRY macro usage is MANDATORY before including ENOVRegister.h
#define "ENOVRegister.h"

// 1. this package declaration
ENOVRegisterPackage(schema);

// 2. Event data streams declarations
ENOVRegisterEventData(stream1);
ENOVRegisterEventArg (stream1,arg1,arg1type);

// 3. Global functions and class methods declarations
ENOVRegisterGlobalMethod(Null,function1,ENOVSecUNCONDITIONAL,NULL);
ENOVRegisterClassMethod (Null,class1,Create,ENOVSecUNCONDITIONAL,NULL);
ENOVRegisterClassMethod (Null,class1,Delete,ENOVSecSECURED|ENOVEvtPublic|ENOVEvtBefore,stream1);
ENOVRegisterClassMethod (Null,class1,method1,ENOVEvtPublic|ENOVEvtAfter,NULL);
ENOVRegisterClassMethod (Null,class2,method1,...);

// 4. Classes subscription interfaces declarations
ENOVRegisterClassEventInterface(class1,interf_class1);

Parameters:
schema
The package name. The shared library's module implementing this package MUST have the same name.

This object is included in the file: ENOVRegister.h

Copyright © 2003, Dassault Systèmes. All rights reserved.