You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
drzoom
Posted - May 12 2006 : 04:12:06 AM The current classwizard isn't very useful.
I usualy miss this things:
1. Select the destination directory for the files. 2. Use lowercase filenames for the created files. 3. Select a namespace for the new class. 4. Use a custom format for the guards.
As an example, a common header file how I would expect after a class wizard:
(It's a headerfile for the library "Foo")
=== begin src/grow/garden/tomato.h == #ifndef FOO_GROW_GARDEN_TOMATO_H #define FOO_GROW_GARDEN_TOMATO_H #prama once
#include "vegetable.h"
namespace grow { namespace garden {
/** * Tomato, blah */ class Tomato : public Vegetable { // ... };
} }
#endif === end ==
=== begin src/grow/garden/tomato.cpp == #include "pch.h" #include "tomato.h"
namespace grow { namespace garden {
Tomato::Tomato() : Vegetable() { }
// ...
} } === end ===
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - May 15 2006 : 5:31:33 PM have you looked into the autotext feature in VA?
it will not create the files for you, but with a bit of care it can do most of the rest of what you want. since you are free to edit and tweak the autotext rules as much as you like you can get the exact formatting that you are after.
most of the changes you seem to be after here are formatting, and the problem with this is that different people have different views and opinions. it is basically impossible to please everyone without making something that is incredibly flexible.