Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - golyshkin

Pages: [1]
1
General Board / Re: Code Generation [COMMENTS]
« on: July 13, 2005, 07:59:14 pm »
I observed this too. For fix it u should remove all generated files and try generate it again

2
General Board / Re: generate code for attribute default values?
« on: July 08, 2005, 03:22:54 pm »
Now static works too  ;D

$COMMENT = "Its script implement initialization for constructors"
%PI=" "%

%if attStatic==""%

$COMMENT = "Not static initialization"
$type=%attQualType%
$type=%REPLACE($type,".","::")%
$qualType=%packagePath% + "::" + %attType%
%PI=""%
%attContainment=="By Reference" ? "&" : ""%
%attName%( %attInitial% )

%else%

$COMMENT = "Static initialization"
%attQualType% %className%::%attName% = %attInitial%;

%endIf%

3
General Board / Re: generate code for attribute default values?
« on: July 08, 2005, 02:02:16 pm »
I did it sir,

So u need create new template Attribute__Implement
$COMMENT = "Its script implement initialization for constructors"
%PI=" "%

%if attStatic==""%

$COMMENT = "Not static initialization"
$type=%attQualType%
$type=%REPLACE($type,".","::")%
$qualType=%packagePath% + "::" + %attType%
%PI=""%
%attContainment=="By Reference" ? "&" : ""%
%attName%( %attInitial% )

%else%

$COMMENT = "Static initialization"

%endIf%

Replace Class Body Implement template to following code
$templateArgs=%list="ClassParameter" @separator=", "%
%if $templateArgs != ""%
$templateArgs="<" + $templateArgs + ">"
$templ="template" + $templateArgs
%endIf%
$consPrefix=$templ + "\n" + %classQualName% + "::"

%if classStereotype != "struct"%

%PI=" "%
%if genOptGenConstructor == "T" and genOptGenConstructorInline != "T" and classHasConstructor != "T"%
$defaults = %list="Attribute__Implement" @separator=", " attInitial !=""%
$consPrefix%className%()
%if $defaults != ""%
: $defaults
%endIf%
\n{\n\n}
%endIf%

%PI="\n\n"%

%if genOptGenDestructor == "T" and genOptGenDestructorInline != "T" and classHasDestructor != "T"%
$destructor=$consPrefix+"~"+%className%+"()\n{\n\n}"
$destructor
%endIf%

%if genOptGenCopyConstructor == "T" and genOptGenCopyConstructorInline != "T" and classHasCopyConstructor != "T"%
$consPrefix%className%( const %className%& the%className% )\n{\n\n}
%endIf%

%endIf%

%list="OperationImpl" @separator="\n\n\n"%

%list="InnerClassImpl" @separator=""%

I checked - its works

4
General Board / Re: Import class diagrams from Rational Rose
« on: July 08, 2005, 08:22:29 am »
Thnx. Its working  ;D

5
General Board / Re: Import class diagrams from Rational Rose
« on: July 08, 2005, 05:02:55 am »
I am using Rose 2003 build 06.00.436. I checked my Add-Ins, and I can't see this plugin in my Rose. Plz, say me how I can get it? Do u know other ways (import Rose models) without using this plugin?

6
General Board / Import class diagrams from Rational Rose
« on: July 07, 2005, 10:05:13 pm »
Hi guys!

Plz tell me, how I can import all my class diagrams from Rational Rose to this stuff? Its very important for me, because I did a lot of work under Rose and would like to import all my work without global redesign.

Pages: [1]