Sorry for the noop question, but is it possible (In Visual C++ 2010 or some other IDE) to generate the header file automatically based on the variables and code in the actual source code (.cpp) files?
Thanks!
Most IDE's support some command like 'Create class' which creates a skeleton .h/.cpp file pair for you.
Additionally the Eclipse CDT IDE supports a command 'Implement methods' that will create member function bodies from the declarations in the header file.
Another option is to use a separate or builtin CASE or UML tool that is able to generate code from your model (I think there's a free UML modelling plugin available for Eclipse, never used this myself though).
*.h or *.hpp files are a part of the actual source code. So, in common case it is impossible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With