HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ServerApplication.hpp File Reference
#include <Poco/Util/HelpFormatter.h>
#include <Poco/Util/ServerApplication.h>
#include <Poco/Util/OptionSet.h>
#include <Poco/SharedPtr.h>
#include <Poco/AutoPtr.h>
#include <Poco/Exception.h>
#include <Poco/Bugcheck.h>
#include <string>
#include <vector>
#include <iostream>
#include <map>
#include <unistd.h>
#include <stdio.h>
#include <sstream>
#include <algorithm>
#include "Logger.hpp"
#include "DBSession.hpp"
#include "exceptions/AlreadyInitializedException.hpp"
#include "exceptions/NotSetDatabaseParameters.hpp"
#include "exceptions/NotSetDatabaseType.hpp"
Include dependency graph for ServerApplication.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HCE::ServerApplication

Namespaces

namespace  HCE
 < HCE::ServerApplication provides global variable 'HCE::database::Session' which initializes in function 'HCE::ServerApplication::initializeDataBaseSession()'

Macros

#define HCE_SERVER_MAIN(App)

Detailed Description

Macro Definition Documentation

#define HCE_SERVER_MAIN (   App)
Value:
int main(int argc, char** argv) { \
const std::string UNKNOWN_EXCEPTION = "Unknown exception"; \
int rc = Poco::Util::Application::EXIT_OK; \
try { \
App app; \
rc = app.run(argc, argv); \
} \
catch (const Poco::Exception& exc) { \
std::cerr << exc.displayText() << std::endl; \
rc = exc.code(); \
} \
catch (const std::exception& exc) { \
std::cerr << exc.what() << std::endl; \
rc = Poco::Util::Application::EXIT_SOFTWARE; \
} \
catch (...) { \
std::cerr << UNKNOWN_EXCEPTION << std::endl; \
rc = Poco::Util::Application::EXIT_SOFTWARE; \
} \
return rc; \
} \

Definition at line 112 of file ServerApplication.hpp.