- if(poller_)
- delete poller_;
- if(ev_mgr_)
- delete ev_mgr_;
-}
-
-/**
-Constructs an instance of the registered application class and runs it. If the
-application throws a UsageError, the static usage() function is called.
-
-This function can only be called once. The global main() function provided by
-the library normally does it automatically at program startup.
-*/
-int Application::run(int argc, char **argv)
-{
- static bool called=false;
- if(called)
- {
- cerr<<"Trying to call Application::run_app twice!\n";
- return 125;
- }
- called=true;
-
- if(!reg_app_)