MOOS 0.2375
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
CAntler Class Reference

#include <Antler.h>

Collaboration diagram for CAntler:
Collaboration graph
[legend]

List of all members.

Classes

struct  MOOSProc

Public Types

enum  VERBOSITY_LEVEL { QUIET, TERSE, CHATTY }

Public Member Functions

 CAntler ()
bool Run (const std::string &sMissionFile, std::set< std::string > Filter=std::set< std::string >())
bool Run (const std::string &sHost, int lPort, const std::string &sAntlerName)
bool SetVerbosity (VERBOSITY_LEVEL eLevel)
bool ShutDown ()

Protected Types

typedef std::list< MOOSProc * > MOOSPROC_LIST

Protected Member Functions

bool Spawn (const std::string &sMissionFile, bool bHeadless=false)
MOOSProcCreateMOOSProcess (std::string sProcName)
bool MakeConsoleLaunchParams (std::string sParam, STRING_LIST &LaunchList, std::string sProcName, std::string sMOOSName)
bool MakeExtraExecutableParameters (std::string sParam, STRING_LIST &ExtraCommandLineParameters, std::string sProcName, std::string sMOOSName)
bool DoNixOSLaunch (MOOSProc *pNewProc)
bool ConfigureMOOSComms ()
bool SendMissionFile ()
bool PublishProcessQuit (const std::string &sProc)
bool PublishProcessLaunch (const std::string &sProc)
bool DoRemoteControl ()
bool OnMOOSConnect ()
bool OnMOOSDisconnect ()
bool KillNicely (MOOSProc *pProc)

Static Protected Member Functions

static bool _RemoteControlCB (void *pParam)
static bool _MOOSConnectCB (void *pParam)
static bool _MOOSDisconnectCB (void *pParam)

Protected Attributes

MOOSPROC_LIST m_ProcList
std::string m_sDefaultExecutablePath
CProcessConfigReader m_MissionReader
std::set< std::string > m_Filter
int m_nCurrentLaunch
CMOOSThread m_RemoteControlThread
CMOOSCommClientm_pMOOSComms
CMOOSLock m_JobLock
std::string m_sMissionFile
bool m_bHeadless
bool m_bQuitCurrentJob
bool m_bSupportGentleKill
bool m_bRunning
bool m_bNewJob
std::string m_sMonarchAntler
bool m_bKillOnDBDisconnect
std::string m_sReceivedMissionFile
std::string m_sAntlerName
std::string m_sDBHost
int m_nDBPort
VERBOSITY_LEVEL m_eVerbosity

Detailed Description

Definition at line 38 of file Antler.h.


Member Typedef Documentation

typedef std::list<MOOSProc*> CAntler::MOOSPROC_LIST [protected]

Definition at line 110 of file Antler.h.


Member Enumeration Documentation

Enumerator:
QUIET 
TERSE 
CHATTY 

Definition at line 71 of file Antler.h.


Constructor & Destructor Documentation

CAntler::CAntler ( )

Definition at line 15 of file Antler.cpp.


Member Function Documentation

static bool CAntler::_MOOSConnectCB ( void *  pParam) [inline, static, protected]

internal MOOS client callbacks

Definition at line 131 of file Antler.h.

static bool CAntler::_MOOSDisconnectCB ( void *  pParam) [inline, static, protected]

Definition at line 136 of file Antler.h.

static bool CAntler::_RemoteControlCB ( void *  pParam) [inline, static, protected]

method to allow Listen thread to be launched with a MOOSThread.

Definition at line 125 of file Antler.h.

bool CAntler::ConfigureMOOSComms ( ) [protected]

Definition at line 190 of file Antler.cpp.

CAntler::MOOSProc * CAntler::CreateMOOSProcess ( std::string  sProcName) [protected]

Definition at line 660 of file Antler.cpp.

bool CAntler::DoNixOSLaunch ( CAntler::MOOSProc pNewProc) [protected]

Definition at line 960 of file Antler.cpp.

bool CAntler::DoRemoteControl ( ) [protected]

main comms handling thread

Definition at line 76 of file Antler.cpp.

bool CAntler::KillNicely ( MOOSProc pProc) [protected]

Kill a process gently

Definition at line 308 of file Antler.cpp.

bool CAntler::MakeConsoleLaunchParams ( std::string  sParam,
STRING_LIST LaunchList,
std::string  sProcName,
std::string  sMOOSName 
) [protected]

Definition at line 592 of file Antler.cpp.

bool CAntler::MakeExtraExecutableParameters ( std::string  sParam,
STRING_LIST ExtraCommandLineParameters,
std::string  sProcName,
std::string  sMOOSName 
) [protected]

Definition at line 570 of file Antler.cpp.

bool CAntler::OnMOOSConnect ( ) [protected]

hellos MOOSDB!

Definition at line 241 of file Antler.cpp.

bool CAntler::OnMOOSDisconnect ( ) [protected]

goodby MOOSDB

Definition at line 256 of file Antler.cpp.

bool CAntler::PublishProcessLaunch ( const std::string &  sProc) [protected]

Definition at line 294 of file Antler.cpp.

bool CAntler::PublishProcessQuit ( const std::string &  sProc) [protected]

Definition at line 280 of file Antler.cpp.

bool CAntler::Run ( const std::string &  sMissionFile,
std::set< std::string >  Filter = std::set<std::string>() 
)

Definition at line 29 of file Antler.cpp.

bool CAntler::Run ( const std::string &  sHost,
int  lPort,
const std::string &  sAntlerName 
)

Definition at line 38 of file Antler.cpp.

bool CAntler::SendMissionFile ( ) [protected]

Definition at line 217 of file Antler.cpp.

bool CAntler::SetVerbosity ( VERBOSITY_LEVEL  eLevel)

Definition at line 171 of file Antler.cpp.

bool CAntler::ShutDown ( )

Definition at line 824 of file Antler.cpp.

bool CAntler::Spawn ( const std::string &  sMissionFile,
bool  bHeadless = false 
) [protected]

Definition at line 367 of file Antler.cpp.


Member Data Documentation

Definition at line 153 of file Antler.h.

Definition at line 159 of file Antler.h.

bool CAntler::m_bNewJob [protected]

Definition at line 157 of file Antler.h.

Definition at line 154 of file Antler.h.

Definition at line 156 of file Antler.h.

Definition at line 155 of file Antler.h.

Definition at line 165 of file Antler.h.

std::set<std::string> CAntler::m_Filter [protected]

Definition at line 116 of file Antler.h.

Definition at line 151 of file Antler.h.

Definition at line 113 of file Antler.h.

int CAntler::m_nCurrentLaunch [protected]

Definition at line 118 of file Antler.h.

int CAntler::m_nDBPort [protected]

Definition at line 163 of file Antler.h.

Definition at line 123 of file Antler.h.

Definition at line 111 of file Antler.h.

Definition at line 122 of file Antler.h.

std::string CAntler::m_sAntlerName [protected]

Definition at line 161 of file Antler.h.

std::string CAntler::m_sDBHost [protected]

Definition at line 162 of file Antler.h.

std::string CAntler::m_sDefaultExecutablePath [protected]

Definition at line 112 of file Antler.h.

std::string CAntler::m_sMissionFile [protected]

Definition at line 152 of file Antler.h.

std::string CAntler::m_sMonarchAntler [protected]

Definition at line 158 of file Antler.h.

std::string CAntler::m_sReceivedMissionFile [protected]

Definition at line 160 of file Antler.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines