News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

specifying namespaces in class wizard

Started by ramS, April 28, 2010, 08:36:45 PM

Previous topic - Next topic

ramS

Is there a way to specify a namespace to use when using the class wizard? By default the wizard does not use any namespaces. Also any way to specify additional methods to generate in the wizard? I want to specify certain methods so the wizard can put them in the header file and add stubs in the cpp file.

Thanks,
Ram

MortenMacFly

Quote from: ramS on April 28, 2010, 08:36:45 PM
Is there a way to specify a namespace to use when using the class wizard? By default the wizard does not use any namespaces. Also any way to specify additional methods to generate in the wizard?
Both: No.

However, I don't believe you'll need this in the wizard. Adding a namespace is a two-liner and adding methods to the header file you can do quickly and after that use Code::Blocks "add unimplemented functions" feature for the implementation file to generate the stubs. It's basically the same amount of work for you and keep the Class wizard more simple.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]