I'm trying to use @{xyz} substitutions to decorate class declarations in order to make Visual C++ 2008 compiler automatically export the class from a dll.
I operated this way:
1) Modified Generation settings dialog:
- Code: Select all
${comment}${template}class @{EXPORT_TAG} ${name}${inherit} {
${members}};
${inlines}
2) Put EXPORT_TAG -> HILUTILS_API in Package Dialog | Properties
BOUML 6.4.3 correctly accomplish the job when showing the result after the substitution in C++ tab of the class and in the artifact header preview:
- Code: Select all
//
//Class: CCallbackInfo
//Description: Contains callback and its arguments
class HILUTILS_API CCallbackInfo : public CLinkable {
...CCallbackInfo()
...CCallbackInfo()
...Assign()
...SetResult()
...SetReqArg()
...SetRspArg()
...Execute()
...m_Cb
...m_Arg
};//
//Class: CCallbackInfo
//Description: Contains callback and its arguments
class HILUTILS_API CCallbackInfo : public CLinkable {
...CCallbackInfo()
...CCallbackInfo()
...Assign()
...SetResult()
...SetReqArg()
...SetRspArg()
...Execute()
...m_Cb
...m_Arg
};
but when it generates artifact, the file contains:
- Code: Select all
class @{EXPORT_TAG}}CCallbackInfo : public CLinkable {
...
}:
Can anyone, please, tell me where I was wrong?
Thanks.
D.Parodi