Aldebaran documentation
|
C++ Libraries
|
index
libalcommon
2.5.7.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
alcommon
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_
api.h
ALTools::mainFunction
ALCOMMON_API int mainFunction(const std::string &pBrokerName, int argc, char *argv[], const TMainType &callback)
main function for remote modules
TMainType
boost::function1< int, boost::shared_ptr< AL::ALBroker > > TMainType
main entry point function pointer.
Definition:
altoolsmain.h:24
ALCOMMON_API
#define ALCOMMON_API
Definition:
api.h:14
Copyright Aldebaran Robotics