Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ramS on April 28, 2010, 08:36:45 pm

Title: specifying namespaces in class wizard
Post by: 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? 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
Title: Re: specifying namespaces in class wizard
Post by: MortenMacFly on April 29, 2010, 06:31:56 am
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.