libalcommon
1.14.5
|
00001 00007 #pragma once 00008 #ifndef _LIBALCOMMON_ALCOMMON_ALTOOLSMAIN_H_ 00009 #define _LIBALCOMMON_ALCOMMON_ALTOOLSMAIN_H_ 00010 00011 #include <boost/shared_ptr.hpp> 00012 #include <boost/function/function_fwd.hpp> 00013 00015 namespace AL 00016 { 00017 class ALBroker; 00018 } 00019 00023 typedef boost::function1< int, boost::shared_ptr<AL::ALBroker> > TMainType; 00024 00026 namespace ALTools 00027 { 00035 int mainFunction(const std::string &pBrokerName, int argc, char *argv[], const TMainType &callback); 00036 } 00037 00038 #endif // _LIBALCOMMON_ALCOMMON_ALTOOLSMAIN_H_