Re: help with automatic code generation
- From: Logan Shaw <lshaw-usenet@xxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 00:46:40 -0600
JoshforRefugee wrote:
This is not more of a C++/code question, it is more like OOP question.
But as I mentioned above, I am trying to figure out way to register
construction and register few method in class with my env class.
What the heck is an "env class"? Is it related to an "env"? What
is an "env"?
Now,
my question is can I do this with macros?
You haven't explained what you're trying to accomplish, so it's impossible
to answer the question.
if yes can you someone can
give me some pseudo code or some idea on how to do this..I am actually
blank and think that it is not possible since you have to append this
methods in your env class all the time, and not sure I can do that in C
++.
so if my env already has
myA.reset();
myB.reset();
myA.execute();
myB.execute()
I have to append myC so that
myA.reset();
myB.reset();
myC.reset()
myA.execute();
myB.execute();
myC.execute();
It sounds like you have a design problem that is causing you other
problems. If creating another class is a very mechanical process
that requires no thought (and is very tedious), then those new classes
contain very little information, and your design is probably flawed.
You should revisit the design decision (or decisions) that has
created this situation.
- Logan
.
- References:
- help with automatic code generation
- From: JoshforRefugee
- Re: help with automatic code generation
- From: Willem
- Re: help with automatic code generation
- From: JoshforRefugee
- Re: help with automatic code generation
- From: JoshforRefugee
- Re: help with automatic code generation
- From: Arthur J. O'Dwyer
- Re: help with automatic code generation
- From: JoshforRefugee
- help with automatic code generation
- Prev by Date: Re: Other than php/perl/lisp/c/c++/java, anybody have a favorite computer-programming language?
- Next by Date: Re: help with automatic code generation
- Previous by thread: Re: help with automatic code generation
- Next by thread: Re: help with automatic code generation
- Index(es):
Relevant Pages
|