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 - adutoit

Pages: [1]
1
General Board / Specifying namespace for generated c++ code.
« on: October 14, 2003, 08:10:23 am »
Hi.

I would like to know how does one specify the namespace to use for generated c++ headers?

I.e.; if I want all my generated classes to reside in namespace "foo" (sorry for the over-used but ever handy identifier), where and how do I specify this in the project settings?  Is this possible?

I.e. for a vanilla generated class A; which will look like this:

namespace foo
{
class A
{
};
}

How do I get generated classes to be contained in a namespace as above?

It does not seem like the only reference to namespaces I found in EA is what I need.

I am probably missing some obvious detail somewhere.

Greetings,
Andre

2
General Board / Specifying a c++ class-specific constructor?
« on: October 30, 2003, 07:10:39 am »
Hi.

Is it possible to specify a c++ class-specific (non-default) constructor for a class in EA?  It is possible to add a method to a class via the 'Detail/Operations' path; but there is no way of specifying that this method is a special method such as a class-specific constructor?

Sure, a class-specific constructor is just another method which takes a bunch of parameters, but it has no (not even void) return type and it is typically placed right after the default constructor in a class.  If I add such a constructor via the path used for normal methods, this method is placed at the end of the class' generated header file.  Sure, EA has no way of knowing that it is a class-specific constructor.  

How do I at least specify the location of this method in the generated header  file of the class?  Or does EA handle class-specific constructors for C++ and I am just not aware of it?

3
General Board / Removing an include specification.
« on: October 29, 2003, 07:47:26 am »
Hi.

It seems that once I have manually specified an include for a class, it stays there forever.  I.e. even if I remove an include statement from the "Import(s)/Headers(s)" box for a class, the include is always part of the generated header.  

Where is this information cached?  How do I permanently get rid the include statement?  I don't want to edit the generated header files everytime to remove redundant/deprecated includes.

4
General Board / Limiting code generation to header files only.
« on: October 28, 2003, 01:49:30 am »
Hi.

Is there a way to prevent EA from producing C/C++ source files (.cpp,.cc) when performing code generation?  I.e.  limiting the code generation to header files (.h,.hpp) only?

This is not a critical shortcoming, more a slight irritation.

Pages: [1]