Re: Fundamental question about main parameters...
- From: Christopher Harvey <chris basementcode com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Fundamental question about main parameters...
- Date: Mon, 29 Jun 2009 22:54:35 -0400
Murray Cumming wrote:
> On Tue, 2009-06-30 at 16:10 +0200, Sever P A wrote:
>
>> Hello,
>>
>> In my app. main.cc, there is something like...
>>
>> ---
>> int main(int argc, char *argv[])
>> {
>> Gtk::Main kit(argc, argv);
>> Class object;
>> Gtk::Main::run (object);
>> return 0;
>> }
>> ---
>>
>> It would seems a fundamental C++ programming question but, I'd like to
>> ask you for the best way to transfer the main parameters values to
>> "Class" member vars...
>>
>
> Glib::OptionContext makes this quite easy:
> http://git.gnome.org/cgit/glibmm/tree/examples/options/main.cc
>
>
The boost program options library is also good, if you're ever not in a
gnome environment.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]