[gme-users] RE: 2 decorators??

Peter Volgyesi peter.volgyesi at vanderbilt.edu
Tue Mar 2 07:21:11 CST 2004


Yes, you can use as many decorators as you want. You can even use different
decorators for different instances of the same kind in your models.

--
peter


> -----Original Message-----
> From: Saxena Tripti [mailto:tripti.saxena at consultant.volvo.com] 
> Sent: Tuesday, March 02, 2004 6:15 AM
> To: Peter Volgyesi
> Cc: gme-users at list.isis.vanderbilt.edu
> Subject: 2 decorators??
> 
> Hello ,
>   I was wondering whether 2 decorators can be used with the 
> same metamodel. Actually I have added a few entities to the 
> current metamodel of a language but the decorator was meant 
> for the original metamodel and since i did not have the 
> decorator source files I ave to modify the skeleton but can 
> my decorator be used along with the other decorator ??
> 
> Thanks ,
> Tripti 
> 
> 
> 
> ----------------------------------------------------------
> 
> 
> -----Original Message-----
> From: Peter Volgyesi [mailto:peter.volgyesi at vanderbilt.edu]
> Sent: Wednesday, February 25, 2004 2:18 PM
> To: Saxena Tripti; 'Akos Ledeczi'
> Subject: RE: [Fwd: RE: GME decorator.]
> 
> 
> Dear Tripti,
> 
> The problem might be that you have added the commonerror.cpp 
> file to the
> Visual Studio project, although it is included by 
> Decorator.cpp. Either
> remove  the commonerror.cpp file from the project (not from 
> the directory),
> or comment out that include line from the beginning of decorator.cpp. 
> 
> If you'd like to create a bare skeleton, I highly suggest to use the
> Decorkit.zip in the SDK folder. That is a skeleton. I do not 
> suggest to
> patch the MetaDecorator however, since this project is part 
> of a the whole
> GME source tree and might contain some (hidden) dependencies or other
> strange oddities.
> --
> Peter
> 
> > -------- Original Message --------
> > Subject: 	RE: GME decorator.
> > Date: 	Tue, 24 Feb 2004 14:47:15 +0100
> > From: 	Saxena Tripti <tripti.saxena at consultant.volvo.com>
> > To: 	Akos Ledeczi <akos.ledeczi at vanderbilt.edu>
> > 
> >
> > 
> > Hello , 
> >  Thanks for the reply. Yes I am aware of the UMLdecorator. I 
> > am presently studying it, but I thought it will be better to 
> > make the skeleton run and then start adding my details inside 
> > the methods. Thanks for MetaDecorator.
> > Can you please also tell me why my skeleton is not compiling. 
> > I am putting a copy of the log at the end of this mail . 
> > Thanks and Regards, 
> > Tripti Saxena 
> > 
> > 
> > 
> > --------------------------------------------------------------------
> > Decorator.obj : error LNK2005: "public: __thiscall 
> > hresult_exception::hresult_exception(class hresult_exception 
> > const &)" (??0hresult_exception@@QAE at ABV0@@Z) already defined 
> > in CommonError.obj
> > Decorator.obj : error LNK2005: "public: __thiscall 
> > hresult_exception::hresult_exception(long)" 
> > (??0hresult_exception@@QAE at J@Z) already defined in CommonError.obj
> > Decorator.obj : error LNK2005: "public: class 
> > hresult_exception & __thiscall 
> > hresult_exception::operator=(class hresult_exception const 
> > &)" (??4hresult_exception@@QAEAAV0 at ABV0@@Z) already defined 
> > in CommonError.obj
> > Decorator.obj : error LNK2005: "public: class 
> > hresult_exception & __thiscall 
> > hresult_exception::operator=(long)" 
> > (??4hresult_exception@@QAEAAV0 at J@Z) already defined in 
> CommonError.obj
> > Decorator.obj : error LNK2005: "public: virtual __thiscall 
> > hresult_exception::~hresult_exception(void)" 
> > (??1hresult_exception@@UAE at XZ) already defined in CommonError.obj
> > Decorator.obj : error LNK2005: "public: virtual char const * 
> > __thiscall hresult_exception::what(void)const " 
> > (?what at hresult_exception@@UBEPBDXZ) already defined in 
> CommonError.obj
> > Decorator.obj : error LNK2005: "void __cdecl 
> > SetErrorInfo(unsigned short *)" (?SetErrorInfo@@YAXPAG at Z) 
> > already defined in CommonError.obj
> > Decorator.obj : error LNK2005: "void __cdecl 
> > SetErrorInfo(long,unsigned short *)" 
> > (?SetErrorInfo@@YAXJPAG at Z) already defined in CommonError.obj
> > Decorator.obj : error LNK2005: "void __cdecl 
> > GetErrorInfo(unsigned short * *)" (?GetErrorInfo@@YAXPAPAG at Z) 
> > already defined in CommonError.obj
> > Decorator.obj : error LNK2005: "unsigned short * *  
> > parser_descs" (?parser_descs@@3PAPAGA) already defined in 
> > CommonError.obj
> > Decorator.obj : error LNK2005: "unsigned short * *  
> > meta_descs" (?meta_descs@@3PAPAGA) already defined in 
> CommonError.obj
> > Decorator.obj : error LNK2005: "unsigned short * *  
> > core_descs" (?core_descs@@3PAPAGA) already defined in 
> CommonError.obj
> > Decorator.obj : error LNK2005: "unsigned short * *  
> > common_descs" (?common_descs@@3PAPAGA) already defined in 
> > CommonError.obj
> > Decorator.obj : warning LNK4006: "public: __thiscall 
> > hresult_exception::hresult_exception(void)" 
> > (??0hresult_exception@@QAE at XZ) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "public: __thiscall 
> > hresult_exception::hresult_exception(class hresult_exception 
> > const &)" (??0hresult_exception@@QAE at ABV0@@Z) already defined 
> > in CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "public: __thiscall 
> > hresult_exception::hresult_exception(long)" 
> > (??0hresult_exception@@QAE at J@Z) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "public: class 
> > hresult_exception & __thiscall 
> > hresult_exception::operator=(class hresult_exception const 
> > &)" (??4hresult_exception@@QAEAAV0 at ABV0@@Z) already defined 
> > in CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "public: class 
> > hresult_exception & __thiscall 
> > hresult_exception::operator=(long)" 
> > (??4hresult_exception@@QAEAAV0 at J@Z) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "public: virtual __thiscall 
> > hresult_exception::~hresult_exception(void)" 
> > (??1hresult_exception@@UAE at XZ) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "public: virtual char const 
> > * __thiscall hresult_exception::what(void)const " 
> > (?what at hresult_exception@@UBEPBDXZ) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "void __cdecl 
> > SetErrorInfo(unsigned short *)" (?SetErrorInfo@@YAXPAG at Z) 
> > already defined in CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "void __cdecl 
> > SetErrorInfo(long,unsigned short *)" 
> > (?SetErrorInfo@@YAXJPAG at Z) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "void __cdecl 
> > GetErrorInfo(unsigned short * *)" (?GetErrorInfo@@YAXPAPAG at Z) 
> > already defined in CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "unsigned short * *  
> > parser_descs" (?parser_descs@@3PAPAGA) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "unsigned short * *  
> > meta_descs" (?meta_descs@@3PAPAGA) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "unsigned short * *  
> > core_descs" (?core_descs@@3PAPAGA) already defined in 
> > CommonError.obj; second definition ignored
> > Decorator.obj : warning LNK4006: "unsigned short * *  
> > common_descs" (?common_descs@@3PAPAGA) already defined in 
> > CommonError.obj; second definition ignored
> >    Creating library Release/Decorator.lib and object 
> > Release/Decorator.exp
> > Release/Decorator.dll : fatal error LNK1169: one or more 
> > multiply defined symbols found
> > Error executing link.exe.
> > ----------------------------------------------------------
> > 
> > 
> > -----Original Message-----
> > From: Akos Ledeczi [mailto:akos.ledeczi at vanderbilt.edu]
> > Sent: Tuesday, February 24, 2004 2:23 PM
> > To: Saxena Tripti
> > Subject: Re: GME decorator.
> > 
> > 
> > Tripti,
> > 
> > sorry for the slow response. Were you aware that the
> > UML paradigm has a decorator that is included in the
> > release? I am also attaching the metadecorator that
> > is similar to that one. Hope this helps,
> > 
> > Akos
> > 
> > 
> > 
> > 
> > Saxena Tripti wrote:
> > 
> > >>From: 	Saxena Tripti  
> > >>Sent:	Tuesday, February 24, 2004 11:06 AM
> > >>To:	'gme-users at list.isis.vanderbilt.edu'
> > >>Subject:	GME decorator. 
> > >>
> > >>Hello , 
> > >> I am a thesis worker working for Volvo. I am using GME to 
> > model and want to change the decorator. I was playing with 
> > the decorator skeleton provided . I was unable to compile the 
> > decorator skeleton. I am attaching the log here . Can you 
> > please tell me what is wrong. Also I saw a posting in GME 
> > forum saying that it was possible to send some other 
> > decorator source files. Do you think it is possible for you 
> > to send it . 
> > >>
> > >>Errors are like this:
> > >>
> > >>-----error LNK2005: "public: __thiscall 
> > hresult_exception::hresult_exception(void)" 
> > (??0hresult_exception@@QAE at XZ) already defined in CommonError.obj 
> > >>
> > >>what do you think is wrong ??
> > >>Please help 
> > >>Tripti 
> > >>
> > >>-----------------------------------------------------
> > >>    
> > >>
> > >>> <<Decorator.plg>> 
> > >>>
> > >
> > >  
> > >
> > 
> > 
> 



More information about the gme-users mailing list