application_base.h File Reference

#include "opsysdll.h"
#include <basis/object_base.h>
#include <data_struct/static_memory_gremlin.h>
#include <loggers/file_logger.h>

Include dependency graph for application_base.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  application_base
 Provides a base object for the root application portion of a program. More...

Defines

#define SET_ARGC_ARGV(argc, argv)
 this macro assigns our command-line parameters for this program.
#define HOOPLE_MAIN(obj_name, obj_args)
 options that should work for most unix and linux apps.


Define Documentation

#define HOOPLE_MAIN ( obj_name,
obj_args   ) 

Value:

HOOPLE_STARTUP_CODE; \
    int main(int argc, char *argv[]) { \
      SET_ARGC_ARGV(argc, argv); \
      SET_DEFAULT_COMBO_LOGGER; \
      obj_name root_object obj_args; \
      return root_object.execute(); \
    }
options that should work for most unix and linux apps.

Definition at line 162 of file application_base.h.

#define SET_ARGC_ARGV ( argc,
argv   ) 

Value:

{ \
    __argc = argc; \
    __argv = argv; \
  }
this macro assigns our command-line parameters for this program.

this is not usually needed in win32, since the variables named __argc and __argv are already provided by the visual c++ compiler. you may want to add a definition of the variables for other compilers (see basis/portable) or operating systems besides unix.

Definition at line 127 of file application_base.h.


Generated on Tue Aug 19 05:11:20 2008 for HOOPLE Libraries by  doxygen 1.5.1