Author Topic: specifying namespaces in class wizard  (Read 3621 times)

Offline ramS

  • Single posting newcomer
  • *
  • Posts: 9
specifying namespaces in class wizard
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: specifying namespaces in class wizard
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ