User forums > Using Code::Blocks

specifying namespaces in class wizard

(1/1)

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?

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version