libalcommon  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
altoolsmain.h
Go to the documentation of this file.
1 
7 #pragma once
8 #ifndef _LIBALCOMMON_ALCOMMON_ALTOOLSMAIN_H_
9 #define _LIBALCOMMON_ALCOMMON_ALTOOLSMAIN_H_
10 
11 #include <alcommon/api.h>
12 #include <boost/shared_ptr.hpp>
13 #include <boost/function/function_fwd.hpp>
14 
16 namespace AL
17 {
18  class ALBroker;
19 }
20 
24 typedef boost::function1< int, boost::shared_ptr<AL::ALBroker> > TMainType;
25 
27 namespace ALTools
28 {
36  ALCOMMON_API int mainFunction(const std::string &pBrokerName, int argc, char *argv[], const TMainType &callback);
37 }
38 
39 #endif // _LIBALCOMMON_ALCOMMON_ALTOOLSMAIN_H_
ALCOMMON_API int mainFunction(const std::string &pBrokerName, int argc, char *argv[], const TMainType &callback)
main function for remote modules
boost::function1< int, boost::shared_ptr< AL::ALBroker > > TMainType
main entry point function pointer.
Definition: altoolsmain.h:24
#define ALCOMMON_API
Definition: api.h:14