diff -r 7b5e8f6c4370 -r b46382ab04d2 uidesigner/com.nokia.sdt.series60.componentlibrary/components/FileAndClassMacros.inc.html --- a/uidesigner/com.nokia.sdt.series60.componentlibrary/components/FileAndClassMacros.inc.html Tue Nov 10 17:08:19 2009 -0600 +++ b/uidesigner/com.nokia.sdt.series60.componentlibrary/components/FileAndClassMacros.inc.html Thu Nov 12 14:50:22 2009 -0600 @@ -1,1097 +1,11 @@ - - - -Help for Macros in FileAndClassMacros.inc - - -

-

Table of contents

-

-SourceFileTemplate -

- -

-HeaderFileTemplate -

- -

-ClassTemplate -

- -

-AddCppIncludes -

- -

-ResolvePhases -

- -

-

- -

SourceFileTemplate

-

-

Defines the basic structure for a source file. This defines a file with system includes, user includes, and constants.

-

-

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ArgumentReq'd?DefaultDescription
Dirno${src} -

-

Project-relative directory for file

-

-
FileNameno${instanceName$title}.cpp -

-

Filename, inside $(Dir), to create

-

-
HeaderFileNameno${instanceName$title}.h -

-

Filename of associated header to #include, or blank for no #include

-

-
LocationPrefixnoSOURCE -

-

String which is prefixed to the location ids defined by this macro.

-

-
InitialFileHeadContentno  -

-

optional stock text for the source file (before system includes, user includes, constants).

-

NOTE: one-time text, should not depend on modifiable properties

-

NOTE: does not need to specify default source file template (comments), which is automatic.

-

-
RealizeSystemIncludesnotrue -

-

flag that can be used to avoid generating the system includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

-

-
SystemIncludesRegionNamenoGenerated System Includes -

-

name of the generated section for system includes

-

-
InitialSystemIncludesContentno  -

-

optional stock text for the system includes

-

-
RealizeUserIncludesnotrue -

-

flag that can be used to avoid generating the user includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

-

-
UserIncludesRegionNamenoGenerated User Includes -

-

name of the generated section for user includes

-

-
InitialUserIncludesContentno  -

-

optional stock text for the user includes

-

-
RealizeConstantsnotrue -

-

flag that can be used to avoid generating the constants section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

-

-
ConstantsRegionNamenoGenerated Constants -

-

name of the generated section for constants

-

-
InitialConstantsContentno  -

-

optional stock text for the constants

-

-
InitialFileTailContentno  -

-

optional stock text for the source file (after system includes, user includes, constants) which appears at the very end of the file.

-

NOTE: one-time text, should not depend on modifiable properties

-

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)_FILE".

-

-
Dirno${src} -

-

Project-relative directory for file

-

-
FileNameno${instanceName$title}.cpp -

-

Filename, inside $(Dir), to create

-

-
HeaderFileNameno${instanceName$title}.h -

-

Filename of associated header to #include, or blank for no #include

-

-
LocationPrefixnoSOURCE -

-

String which is prefixed to the location ids defined by this macro.

-

-
InitialFileHeadContentno  -

-

optional stock text for the source file (before system includes, user includes, constants).

-

NOTE: one-time text, should not depend on modifiable properties

-

NOTE: does not need to specify default source file template (comments), which is automatic.

-

-
RealizeSystemIncludesnotrue -

-

flag that can be used to avoid generating the system includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

-

-
SystemIncludesRegionNamenoGenerated System Includes -

-

name of the generated section for system includes

-

-
InitialSystemIncludesContentno  -

-

optional stock text for the system includes

-

-
RealizeUserIncludesnotrue -

-

flag that can be used to avoid generating the user includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

-

-
UserIncludesRegionNamenoGenerated User Includes -

-

name of the generated section for user includes

-

-
InitialUserIncludesContentno  -

-

optional stock text for the user includes

-

-
RealizeConstantsnotrue -

-

flag that can be used to avoid generating the constants section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

-

-
ConstantsRegionNamenoGenerated Constants -

-

name of the generated section for constants

-

-
InitialConstantsContentno  -

-

optional stock text for the constants

-

-
InitialFileTailContentno  -

-

optional stock text for the source file (after system includes, user includes, constants) which appears at the very end of the file.

-

NOTE: one-time text, should not depend on modifiable properties

-

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)_FILE".

-

-
- - -

HeaderFileTemplate

-

-

Defines the basic structure for a header file.

-

This defines a file with an include guard, system includes, user includes, event handler includes (non-owned but modifiable), constants, and forward declarations.

-

-

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ArgumentReq'd?DefaultDescription
Dirno${inc} -

-

Project-relative directory for file

-

-
FileNameno${instanceName$title}.h -

-

Filename, inside $(Dir), to create

-

-
IncludeGuardMacrono${instanceName$upper}_H -

-

Include guard macro (#ifndef ...) to use

-

-
LocationPrefixnoHEADER -

-

String which is prefixed to the location ids defined by this macro.

-

-
InitialFileHeadContentno  -

-

optional stock text for the top of the header file. NOTE: one-time text, should not depend on modifiable properties NOTE: does not need to specify header file template (comments) or #ifdef guards.

-

-
RealizeEventHandlerIncludesnotrue -

-

flag that can be used to avoid generating the section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no event handler includes ever defined, otherwise, the section will appear out of order when generated.

-

-
InitialEventHandlerIncludesContentno  -

-

optional stock text for the event handler includes.

-

NOTE: one-time text, should not depend on modifiable properties

-

-
RealizeOwnedSystemIncludesnotrue -

-

flag that can be used to avoid generating the system includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

-

-
OwnedSystemIncludesRegionNamenoGenerated System Includes -

-

name of the generated section for system includes

-

-
RealizeOwnedUserIncludesnotrue -

-

flag that can be used to avoid generating the user includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

-

-
OwnedUserIncludesRegionNamenoGenerated User Includes -

-

name of the generated section for user includes

-

-
InitialOwnedSystemIncludesContentno  -

-

optional stock text for the added system includes

-

-
InitialOwnedUserIncludesContentno  -

-

optional stock text for the user includes.

-

-
RealizeOwnedConstantsnotrue -

-

flag that can be used to avoid generating the constants section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

-

-
InitialOwnedConstantsContentno  -

-

optional stock text for the constants

-

-
RealizeOwnedForwardDeclarationsnotrue -

-

flag that can be used to avoid generating the forward declarations section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no forward decls ever defined, otherwise, the section will appear out of order when generated.

-

-
InitialOwnedForwardDeclarationsContentno  -

-

optional stock text for the forward declarations

-

-
InitialFileTailContentno  -

-

optional stock text for the end of the header file.

-

NOTE: one-time text, should not depend on modifiable properties

-

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)HEADER_FILE".

-

-
Dirno${inc} -

-

Project-relative directory for file

-

-
FileNameno${instanceName$title}.h -

-

Filename, inside $(Dir), to create

-

-
IncludeGuardMacrono${instanceName$upper}_H -

-

Include guard macro (#ifndef ...) to use

-

-
LocationPrefixnoHEADER -

-

String which is prefixed to the location ids defined by this macro.

-

-
InitialFileHeadContentno  -

-

optional stock text for the top of the header file. NOTE: one-time text, should not depend on modifiable properties NOTE: does not need to specify header file template (comments) or #ifdef guards.

-

-
RealizeEventHandlerIncludesnotrue -

-

flag that can be used to avoid generating the section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no event handler includes ever defined, otherwise, the section will appear out of order when generated.

-

-
InitialEventHandlerIncludesContentno  -

-

optional stock text for the event handler includes.

-

NOTE: one-time text, should not depend on modifiable properties

-

-
RealizeOwnedSystemIncludesnotrue -

-

flag that can be used to avoid generating the system includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

-

-
OwnedSystemIncludesRegionNamenoGenerated System Includes -

-

name of the generated section for system includes

-

-
RealizeOwnedUserIncludesnotrue -

-

flag that can be used to avoid generating the user includes section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

-

-
OwnedUserIncludesRegionNamenoGenerated User Includes -

-

name of the generated section for user includes

-

-
InitialOwnedSystemIncludesContentno  -

-

optional stock text for the added system includes

-

-
InitialOwnedUserIncludesContentno  -

-

optional stock text for the user includes.

-

-
RealizeOwnedConstantsnotrue -

-

flag that can be used to avoid generating the constants section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

-

-
InitialOwnedConstantsContentno  -

-

optional stock text for the constants

-

-
RealizeOwnedForwardDeclarationsnotrue -

-

flag that can be used to avoid generating the forward declarations section unless it is used.

-

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no forward decls ever defined, otherwise, the section will appear out of order when generated.

-

-
InitialOwnedForwardDeclarationsContentno  -

-

optional stock text for the forward declarations

-

-
InitialFileTailContentno  -

-

optional stock text for the end of the header file.

-

NOTE: one-time text, should not depend on modifiable properties

-

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)HEADER_FILE".

-

-
- - -

ClassTemplate

-

-

Defines the basic structure for a class with public, protected, and private regions, with owned sections therein for common purposes.

-

-

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ArgumentReq'd?DefaultDescription
BaseClassNameyes  -

-

name of the base class, from which this class derives

-

-
BaseClassNameyes  -

-

name of the base class, from which this class derives

-

-
LocationPrefixno  -

-

String which is prefixed to the location ids defined by this macro. Useful when one component defines multiple files.

-

-
BaseLocationnoHEADER_FILE -

-

name of the base location in which to place the class, defaults to HEADER_FILE

-

-
ClassNameno${className} -

-

name of the class to generate

-

-
BaseClassAccessornopublic -

-

accessor for the base class, from which this class derives

-

-
ExtraBaseClassesno  -

-

extra interface classes, separated by commas

-

-
ClassCommentno  -

-

optional text for the class comment

-

-
InitialClassHeadContentno  -

-

optional text for the start of the class

-

NOTE: one-time code, should not depend on modifiable properties

-

-
InitialPublicHeadContentno  -

-

optional text for the start of the public section (follows "public:")

-

NOTE: one-time code, should not depend on modifiable properties

-

-
RealizePublicOwnedTypesnotrue -

-

flag that can be used to avoid generating the public types section unless it is used.

-

NOTE: if InitialPublicOwnedTypesContent is set, this flag is ignored.

-

-
InitialPublicOwnedTypesContentno  -

-

optional text for the public owned types section

-

-
RealizePublicOwnedMethodsnotrue -

-

flag that can be used to avoid generating the public owned methods section unless it is used.

-

NOTE: if InitialPublicOwnedMethodsContent is set, this flag is ignored.

-

-
InitialPublicOwnedMethodsContentno  -

-

optional text for the public owned methods section

-

-
InitialPublicTailContentno  -

-

optional text for the end of the public section (follows "public:")

-

NOTE: one-time code, should not depend on modifiable properties

-

NOTE: content appears at the end of all initially generated public content.

-

-
InitialProtectedHeadContentno  -

-

optional text for the start of the protected section (follows "protected:")

-

NOTE: one-time code, should not depend on modifiable properties

-

-
RealizeProtectedOverriddenMethodsnotrue -

-

flag that can be used to avoid generating the protected overridden methods section unless it is used.

-

-
InitialProtectedOverriddenMethodsContentno  -

-

optional text for the the protected overridden methods section

-

-
RealizeProtectedUserHandlersnotrue -

-

flag that can be used to avoid generating the protected user handlers section unless it is used. This is used for the prototypes for the user-editable event handler methods.

-

-
InitialProtectedUserHandlersContentno  -

-

optional text for the protected user handlers section

-

-
InitialProtectedTailContentno  -

-

optional text for the end of the protected section

-

NOTE: one-time code, should not depend on modifiable properties

-

NOTE: content appears at the end of all initially generated protected content.

-

-
InitialPrivateHeadContentno  -

-

optional text for the start of the private section (follows "private:")

-

NOTE: one-time code, should not depend on modifiable properties

-

-
RealizePrivateOwnedTypesnotrue -

-

flag that can be used to avoid generating the private owned types section unless it is used.

-

NOTE: if InitialPrivateOwnedTypesContent is set, this flag is ignored.

-

-
InitialPrivateOwnedTypesContentno  -

-

optional text for the the private types section

-

-
RealizePrivateOwnedInstanceVariablesnotrue -

-

flag that can be used to avoid generating the private instance variables section unless it is used.

-

-
InitialPrivateOwnedInstanceVariablesContentno  -

-

optional text for the the private instance variables section

-

-
RealizePrivateOwnedMethodsnotrue -

-

flag that can be used to avoid generating the private owned methods section unless it is used.

-

-
InitialPrivateOwnedMethodsContentno  -

-

optional text for the the private methods section

-

-
InitialPrivateTailContentno  -

-

optional text for the end of the private section

-

NOTE: one-time code, should not depend on modifiable properties

-

NOTE: content appears at the end of all initially generated private content.

-

-
InitialClassTailContentno  -

-

optional text for the end of the class

-

NOTE: one-time code, should not depend on modifiable properties

-

-
LocationPrefixno  -

-

String which is prefixed to the location ids defined by this macro. Useful when one component defines multiple files.

-

-
BaseLocationnoHEADER_FILE -

-

name of the base location in which to place the class, defaults to HEADER_FILE

-

-
ClassNameno${className} -

-

name of the class to generate

-

-
BaseClassAccessornopublic -

-

accessor for the base class, from which this class derives

-

-
ExtraBaseClassesno  -

-

extra interface classes, separated by commas

-

-
ClassCommentno  -

-

optional text for the class comment

-

-
InitialClassHeadContentno  -

-

optional text for the start of the class

-

NOTE: one-time code, should not depend on modifiable properties

-

-
InitialPublicHeadContentno  -

-

optional text for the start of the public section (follows "public:")

-

NOTE: one-time code, should not depend on modifiable properties

-

-
RealizePublicOwnedTypesnotrue -

-

flag that can be used to avoid generating the public types section unless it is used.

-

NOTE: if InitialPublicOwnedTypesContent is set, this flag is ignored.

-

-
InitialPublicOwnedTypesContentno  -

-

optional text for the public owned types section

-

-
RealizePublicOwnedMethodsnotrue -

-

flag that can be used to avoid generating the public owned methods section unless it is used.

-

NOTE: if InitialPublicOwnedMethodsContent is set, this flag is ignored.

-

-
InitialPublicOwnedMethodsContentno  -

-

optional text for the public owned methods section

-

-
InitialPublicTailContentno  -

-

optional text for the end of the public section (follows "public:")

-

NOTE: one-time code, should not depend on modifiable properties

-

NOTE: content appears at the end of all initially generated public content.

-

-
InitialProtectedHeadContentno  -

-

optional text for the start of the protected section (follows "protected:")

-

NOTE: one-time code, should not depend on modifiable properties

-

-
RealizeProtectedOverriddenMethodsnotrue -

-

flag that can be used to avoid generating the protected overridden methods section unless it is used.

-

-
InitialProtectedOverriddenMethodsContentno  -

-

optional text for the the protected overridden methods section

-

-
RealizeProtectedUserHandlersnotrue -

-

flag that can be used to avoid generating the protected user handlers section unless it is used. This is used for the prototypes for the user-editable event handler methods.

-

-
InitialProtectedUserHandlersContentno  -

-

optional text for the protected user handlers section

-

-
InitialProtectedTailContentno  -

-

optional text for the end of the protected section

-

NOTE: one-time code, should not depend on modifiable properties

-

NOTE: content appears at the end of all initially generated protected content.

-

-
InitialPrivateHeadContentno  -

-

optional text for the start of the private section (follows "private:")

-

NOTE: one-time code, should not depend on modifiable properties

-

-
RealizePrivateOwnedTypesnotrue -

-

flag that can be used to avoid generating the private owned types section unless it is used.

-

NOTE: if InitialPrivateOwnedTypesContent is set, this flag is ignored.

-

-
InitialPrivateOwnedTypesContentno  -

-

optional text for the the private types section

-

-
RealizePrivateOwnedInstanceVariablesnotrue -

-

flag that can be used to avoid generating the private instance variables section unless it is used.

-

-
InitialPrivateOwnedInstanceVariablesContentno  -

-

optional text for the the private instance variables section

-

-
RealizePrivateOwnedMethodsnotrue -

-

flag that can be used to avoid generating the private owned methods section unless it is used.

-

-
InitialPrivateOwnedMethodsContentno  -

-

optional text for the the private methods section

-

-
InitialPrivateTailContentno  -

-

optional text for the end of the private section

-

NOTE: one-time code, should not depend on modifiable properties

-

NOTE: content appears at the end of all initially generated private content.

-

-
InitialClassTailContentno  -

-

optional text for the end of the class

-

NOTE: one-time code, should not depend on modifiable properties

-

-
- - -

AddCppIncludes

-

-

Generate #includes for a space-separated list of headers.

-

Note: you cannot use variable substitution, script escapes, etc. in the list. Instead, just write explicit contributions for the include, e.g. <template location="MAIN_OWNED_SYSTEM_INCLUDE"> ...

-

-

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
ArgumentReq'd?DefaultDescription
Headersyes  -

-

a space-separated list of header files

-

-
Headersyes  -

-

a space-separated list of header files

-

-
Locationno  -

-

location where includes should go (either this or Phase should be set)

-

-
Phaseno  -

-

phase where includes should go (either this or Location should be set)

-

-
IsUsernofalse -

-

"User" or <system> includes?

-

-
Locationno  -

-

location where includes should go (either this or Phase should be set)

-

-
Phaseno  -

-

phase where includes should go (either this or Location should be set)

-

-
IsUsernofalse -

-

"User" or <system> includes?

-

-
- - -

ResolvePhases

-

-

This macro fixes up phase -> location mappings on the current contributions, or optionally, another list.

-

The mappings are Phase=Location pairs separated by spaces.

-

This may be called multiple times.

-

-

Arguments

- - - - - - - - - - - - - - -
ArgumentReq'd?DefaultDescription
Mappingsyes  -

-

A space-separated list of Phase=Location mappings.

-

-
Mappingsyes  -

-

A space-separated list of Phase=Location mappings.

-

-
ContribsListnocontribs -

-

The array or list of IContribution upon which to apply the fixups.

-

-
ContribsListnocontribs -

-

The array or list of IContribution upon which to apply the fixups.

-

-
- -

- - +Help for Macros in FileAndClassMacros.inc

Table of contents

SourceFileTemplate

+

HeaderFileTemplate

+

ClassTemplate

+

AddCppIncludes

+

ResolvePhases

+

SourceFileTemplate

Defines the basic structure for a source file. This defines a file with system includes, user includes, and constants.

Arguments

ArgumentReq'd?DefaultDescription
Dirno${src}

Project-relative directory for file

FileNameno${instanceName$title}.cpp

Filename, inside $(Dir), to create

HeaderFileNameno${instanceName$title}.h

Filename of associated header to #include, or blank for no #include

LocationPrefixnoSOURCE

String which is prefixed to the location ids defined by this macro.

InitialFileHeadContentno 

optional stock text for the source file (before system includes, user includes, constants).

NOTE: one-time text, should not depend on modifiable properties

NOTE: does not need to specify default source file template (comments), which is automatic.

RealizeSystemIncludesnotrue

flag that can be used to avoid generating the system includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

SystemIncludesRegionNamenoGenerated System Includes

name of the generated section for system includes

InitialSystemIncludesContentno 

optional stock text for the system includes

RealizeUserIncludesnotrue

flag that can be used to avoid generating the user includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

UserIncludesRegionNamenoGenerated User Includes

name of the generated section for user includes

InitialUserIncludesContentno 

optional stock text for the user includes

RealizeConstantsnotrue

flag that can be used to avoid generating the constants section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

ConstantsRegionNamenoGenerated Constants

name of the generated section for constants

InitialConstantsContentno 

optional stock text for the constants

InitialFileTailContentno 

optional stock text for the source file (after system includes, user includes, constants) which appears at the very end of the file.

NOTE: one-time text, should not depend on modifiable properties

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)_FILE".

Dirno${src}

Project-relative directory for file

FileNameno${instanceName$title}.cpp

Filename, inside $(Dir), to create

HeaderFileNameno${instanceName$title}.h

Filename of associated header to #include, or blank for no #include

LocationPrefixnoSOURCE

String which is prefixed to the location ids defined by this macro.

InitialFileHeadContentno 

optional stock text for the source file (before system includes, user includes, constants).

NOTE: one-time text, should not depend on modifiable properties

NOTE: does not need to specify default source file template (comments), which is automatic.

RealizeSystemIncludesnotrue

flag that can be used to avoid generating the system includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

SystemIncludesRegionNamenoGenerated System Includes

name of the generated section for system includes

InitialSystemIncludesContentno 

optional stock text for the system includes

RealizeUserIncludesnotrue

flag that can be used to avoid generating the user includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

UserIncludesRegionNamenoGenerated User Includes

name of the generated section for user includes

InitialUserIncludesContentno 

optional stock text for the user includes

RealizeConstantsnotrue

flag that can be used to avoid generating the constants section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

ConstantsRegionNamenoGenerated Constants

name of the generated section for constants

InitialConstantsContentno 

optional stock text for the constants

InitialFileTailContentno 

optional stock text for the source file (after system includes, user includes, constants) which appears at the very end of the file.

NOTE: one-time text, should not depend on modifiable properties

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)_FILE".

+

HeaderFileTemplate

Defines the basic structure for a header file.

This defines a file with an include guard, system includes, user includes, event handler includes (non-owned but modifiable), constants, and forward declarations.

Arguments

ArgumentReq'd?DefaultDescription
Dirno${inc}

Project-relative directory for file

FileNameno${instanceName$title}.h

Filename, inside $(Dir), to create

IncludeGuardMacrono${instanceName$upper}_H

Include guard macro (#ifndef ...) to use

LocationPrefixnoHEADER

String which is prefixed to the location ids defined by this macro.

InitialFileHeadContentno 

optional stock text for the top of the header file. NOTE: one-time text, should not depend on modifiable properties NOTE: does not need to specify header file template (comments) or #ifdef guards.

RealizeEventHandlerIncludesnotrue

flag that can be used to avoid generating the section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no event handler includes ever defined, otherwise, the section will appear out of order when generated.

InitialEventHandlerIncludesContentno 

optional stock text for the event handler includes.

NOTE: one-time text, should not depend on modifiable properties

RealizeOwnedSystemIncludesnotrue

flag that can be used to avoid generating the system includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

OwnedSystemIncludesRegionNamenoGenerated System Includes

name of the generated section for system includes

RealizeOwnedUserIncludesnotrue

flag that can be used to avoid generating the user includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

OwnedUserIncludesRegionNamenoGenerated User Includes

name of the generated section for user includes

InitialOwnedSystemIncludesContentno 

optional stock text for the added system includes

InitialOwnedUserIncludesContentno 

optional stock text for the user includes.

RealizeOwnedConstantsnotrue

flag that can be used to avoid generating the constants section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

InitialOwnedConstantsContentno 

optional stock text for the constants

RealizeOwnedForwardDeclarationsnotrue

flag that can be used to avoid generating the forward declarations section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no forward decls ever defined, otherwise, the section will appear out of order when generated.

InitialOwnedForwardDeclarationsContentno 

optional stock text for the forward declarations

RealizeOwnedTypedefsnotrue

flag that can be used to avoid generating the typedefs section unless it is used.

NOTE: due to issues with the source generator, this should't be set 'false' unless you really expect there to be no typedefs ever defined, otherwise, the section will appear out of order when generated.

OwnedTypedefsRegionNamenoGenerated Typedefs

name of the generated section for owned typedefs

InitialOwnedTypedefsContentno 

optional stock text for the initial typedefs

InitialFileTailContentno 

optional stock text for the end of the header file.

NOTE: one-time text, should not depend on modifiable properties

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)HEADER_FILE".

Dirno${inc}

Project-relative directory for file

FileNameno${instanceName$title}.h

Filename, inside $(Dir), to create

IncludeGuardMacrono${instanceName$upper}_H

Include guard macro (#ifndef ...) to use

LocationPrefixnoHEADER

String which is prefixed to the location ids defined by this macro.

InitialFileHeadContentno 

optional stock text for the top of the header file. NOTE: one-time text, should not depend on modifiable properties NOTE: does not need to specify header file template (comments) or #ifdef guards.

RealizeEventHandlerIncludesnotrue

flag that can be used to avoid generating the section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no event handler includes ever defined, otherwise, the section will appear out of order when generated.

InitialEventHandlerIncludesContentno 

optional stock text for the event handler includes.

NOTE: one-time text, should not depend on modifiable properties

RealizeOwnedSystemIncludesnotrue

flag that can be used to avoid generating the system includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no system includes ever defined, otherwise, the section will appear out of order when generated.

OwnedSystemIncludesRegionNamenoGenerated System Includes

name of the generated section for system includes

RealizeOwnedUserIncludesnotrue

flag that can be used to avoid generating the user includes section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no user includes ever defined, otherwise, the section will appear out of order when generated.

OwnedUserIncludesRegionNamenoGenerated User Includes

name of the generated section for user includes

InitialOwnedSystemIncludesContentno 

optional stock text for the added system includes

InitialOwnedUserIncludesContentno 

optional stock text for the user includes.

RealizeOwnedConstantsnotrue

flag that can be used to avoid generating the constants section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no constants ever defined, otherwise, the section will appear out of order when generated.

InitialOwnedConstantsContentno 

optional stock text for the constants

RealizeOwnedForwardDeclarationsnotrue

flag that can be used to avoid generating the forward declarations section unless it is used.

NOTE: due to issues with the source generator, this shouldn't be set 'false' unless you really expect there to be no forward decls ever defined, otherwise, the section will appear out of order when generated.

InitialOwnedForwardDeclarationsContentno 

optional stock text for the forward declarations

RealizeOwnedTypedefsnotrue

flag that can be used to avoid generating the typedefs section unless it is used.

NOTE: due to issues with the source generator, this should't be set 'false' unless you really expect there to be no typedefs ever defined, otherwise, the section will appear out of order when generated.

OwnedTypedefsRegionNamenoGenerated Typedefs

name of the generated section for owned typedefs

InitialOwnedTypedefsContentno 

optional stock text for the initial typedefs

InitialFileTailContentno 

optional stock text for the end of the header file.

NOTE: one-time text, should not depend on modifiable properties

NOTE: this really comes at the very end during initial file generation (unless you emit other templates with mode="at-end"), so if you simply want content after these sections but before other templates you add, just create templates for location="$(LocationPrefix)HEADER_FILE".

+

ClassTemplate

Defines the basic structure for a class with public, protected, and private regions, with owned sections therein for common purposes.

Arguments

ArgumentReq'd?DefaultDescription
BaseClassNameyes 

name of the base class, from which this class derives

BaseClassNameyes 

name of the base class, from which this class derives

LocationPrefixno 

String which is prefixed to the location ids defined by this macro. Useful when one component defines multiple files.

BaseLocationnoHEADER_FILE

name of the base location in which to place the class, defaults to HEADER_FILE

ClassNameno${className}

name of the class to generate

BaseClassAccessornopublic

accessor for the base class, from which this class derives

ExtraBaseClassesno 

extra interface classes, separated by commas

ClassCommentno 

optional text for the class comment

InitialClassHeadContentno 

optional text for the start of the class

NOTE: one-time code, should not depend on modifiable properties

InitialPublicHeadContentno 

optional text for the start of the public section (follows "public:")

NOTE: one-time code, should not depend on modifiable properties

RealizePublicOwnedTypesnotrue

flag that can be used to avoid generating the public types section unless it is used.

NOTE: if InitialPublicOwnedTypesContent is set, this flag is ignored.

InitialPublicOwnedTypesContentno 

optional text for the public owned types section

RealizePublicOwnedMethodsnotrue

flag that can be used to avoid generating the public owned methods section unless it is used.

NOTE: if InitialPublicOwnedMethodsContent is set, this flag is ignored.

InitialPublicOwnedMethodsContentno 

optional text for the public owned methods section

InitialPublicTailContentno 

optional text for the end of the public section (follows "public:")

NOTE: one-time code, should not depend on modifiable properties

NOTE: content appears at the end of all initially generated public content.

InitialProtectedHeadContentno 

optional text for the start of the protected section (follows "protected:")

NOTE: one-time code, should not depend on modifiable properties

RealizeProtectedOverriddenMethodsnotrue

flag that can be used to avoid generating the protected overridden methods section unless it is used.

InitialProtectedOverriddenMethodsContentno 

optional text for the the protected overridden methods section

RealizeProtectedUserHandlersnotrue

flag that can be used to avoid generating the protected user handlers section unless it is used. This is used for the prototypes for the user-editable event handler methods.

InitialProtectedUserHandlersContentno 

optional text for the protected user handlers section

InitialProtectedTailContentno 

optional text for the end of the protected section

NOTE: one-time code, should not depend on modifiable properties

NOTE: content appears at the end of all initially generated protected content.

InitialPrivateHeadContentno 

optional text for the start of the private section (follows "private:")

NOTE: one-time code, should not depend on modifiable properties

RealizePrivateOwnedTypesnotrue

flag that can be used to avoid generating the private owned types section unless it is used.

NOTE: if InitialPrivateOwnedTypesContent is set, this flag is ignored.

InitialPrivateOwnedTypesContentno 

optional text for the the private types section

RealizePrivateOwnedInstanceVariablesnotrue

flag that can be used to avoid generating the private instance variables section unless it is used.

InitialPrivateOwnedInstanceVariablesContentno 

optional text for the the private instance variables section

RealizePrivateOwnedMethodsnotrue

flag that can be used to avoid generating the private owned methods section unless it is used.

InitialPrivateOwnedMethodsContentno 

optional text for the the private methods section

InitialPrivateTailContentno 

optional text for the end of the private section

NOTE: one-time code, should not depend on modifiable properties

NOTE: content appears at the end of all initially generated private content.

InitialClassTailContentno 

optional text for the end of the class

NOTE: one-time code, should not depend on modifiable properties

LocationPrefixno 

String which is prefixed to the location ids defined by this macro. Useful when one component defines multiple files.

BaseLocationnoHEADER_FILE

name of the base location in which to place the class, defaults to HEADER_FILE

ClassNameno${className}

name of the class to generate

BaseClassAccessornopublic

accessor for the base class, from which this class derives

ExtraBaseClassesno 

extra interface classes, separated by commas

ClassCommentno 

optional text for the class comment

InitialClassHeadContentno 

optional text for the start of the class

NOTE: one-time code, should not depend on modifiable properties

InitialPublicHeadContentno 

optional text for the start of the public section (follows "public:")

NOTE: one-time code, should not depend on modifiable properties

RealizePublicOwnedTypesnotrue

flag that can be used to avoid generating the public types section unless it is used.

NOTE: if InitialPublicOwnedTypesContent is set, this flag is ignored.

InitialPublicOwnedTypesContentno 

optional text for the public owned types section

RealizePublicOwnedMethodsnotrue

flag that can be used to avoid generating the public owned methods section unless it is used.

NOTE: if InitialPublicOwnedMethodsContent is set, this flag is ignored.

InitialPublicOwnedMethodsContentno 

optional text for the public owned methods section

InitialPublicTailContentno 

optional text for the end of the public section (follows "public:")

NOTE: one-time code, should not depend on modifiable properties

NOTE: content appears at the end of all initially generated public content.

InitialProtectedHeadContentno 

optional text for the start of the protected section (follows "protected:")

NOTE: one-time code, should not depend on modifiable properties

RealizeProtectedOverriddenMethodsnotrue

flag that can be used to avoid generating the protected overridden methods section unless it is used.

InitialProtectedOverriddenMethodsContentno 

optional text for the the protected overridden methods section

RealizeProtectedUserHandlersnotrue

flag that can be used to avoid generating the protected user handlers section unless it is used. This is used for the prototypes for the user-editable event handler methods.

InitialProtectedUserHandlersContentno 

optional text for the protected user handlers section

InitialProtectedTailContentno 

optional text for the end of the protected section

NOTE: one-time code, should not depend on modifiable properties

NOTE: content appears at the end of all initially generated protected content.

InitialPrivateHeadContentno 

optional text for the start of the private section (follows "private:")

NOTE: one-time code, should not depend on modifiable properties

RealizePrivateOwnedTypesnotrue

flag that can be used to avoid generating the private owned types section unless it is used.

NOTE: if InitialPrivateOwnedTypesContent is set, this flag is ignored.

InitialPrivateOwnedTypesContentno 

optional text for the the private types section

RealizePrivateOwnedInstanceVariablesnotrue

flag that can be used to avoid generating the private instance variables section unless it is used.

InitialPrivateOwnedInstanceVariablesContentno 

optional text for the the private instance variables section

RealizePrivateOwnedMethodsnotrue

flag that can be used to avoid generating the private owned methods section unless it is used.

InitialPrivateOwnedMethodsContentno 

optional text for the the private methods section

InitialPrivateTailContentno 

optional text for the end of the private section

NOTE: one-time code, should not depend on modifiable properties

NOTE: content appears at the end of all initially generated private content.

InitialClassTailContentno 

optional text for the end of the class

NOTE: one-time code, should not depend on modifiable properties

+

AddCppIncludes

Generate #includes for a space-separated list of headers.

Note: you cannot use variable substitution, script escapes, etc. in the list. Instead, just write explicit contributions for the include, e.g. <template location="MAIN_OWNED_SYSTEM_INCLUDES"> ...

Arguments

ArgumentReq'd?DefaultDescription
Headersyes 

a space-separated list of header files

Headersyes 

a space-separated list of header files

Locationno 

location where includes should go (either this or Phase should be set)

Phaseno 

phase where includes should go (either this or Location should be set)

IsUsernofalse

"User" or <system> includes?

Locationno 

location where includes should go (either this or Phase should be set)

Phaseno 

phase where includes should go (either this or Location should be set)

IsUsernofalse

"User" or <system> includes?

+

ResolvePhases

This macro fixes up phase -> location mappings on the current contributions, or optionally, another list.

The mappings are Phase=Location pairs separated by spaces.

This may be called multiple times.

Arguments

ArgumentReq'd?DefaultDescription
Mappingsyes 

A space-separated list of Phase=Location mappings.

Mappingsyes 

A space-separated list of Phase=Location mappings.

ContribsListnocontribs

The array or list of IContribution upon which to apply the fixups.

ContribsListnocontribs

The array or list of IContribution upon which to apply the fixups.

+

\ No newline at end of file