hoople_main.h File Reference

Provides macros that implement the 'main' program of an application. More...

#include "application_shell.h"
#include "command_line.h"
#include "windoze_helper.h"
#include <unistd.h>
#include <basis/definitions.h>
#include <basis/contracts.h>
#include <loggers/critical_events.h>
#include <loggers/combo_logger.h>
#include <structures/static_memory_gremlin.h>
#include <loggers/program_wide_logger.h>
Include dependency graph for hoople_main.h:

Go to the source code of this file.

Namespaces

namespace  application
 

Implements an application lock to ensure only one is running at once.


Defines

#define HOOPLE_STARTUP_CODE   DEFINE_INSTANCE_HANDLE;
#define HOOPLE_MAIN(obj_name, obj_args)
 options that should work for most unix and linux apps.

Detailed Description

Provides macros that implement the 'main' program of an application.

Definition in file hoople_main.h.


Define Documentation

#define HOOPLE_MAIN ( obj_name,
obj_args   ) 
Value:
HOOPLE_STARTUP_CODE; \
    int main(int argc, char *argv[]) { \
      SET_ARGC_ARGV(argc, argv); \
      SETUP_COMBO_LOGGER; \
      obj_name to_run_obj obj_args; \
      return to_run_obj.execute_application(); \
    }

options that should work for most unix and linux apps.

Definition at line 54 of file hoople_main.h.

#define HOOPLE_STARTUP_CODE   DEFINE_INSTANCE_HANDLE;

Definition at line 36 of file hoople_main.h.

Generated on Sat Jan 28 04:23:07 2012 for hoople2 project by  doxygen 1.6.3