Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SoccerMonitor Class Reference

#include <soccermonitor.h>

Inheritance diagram for SoccerMonitor:

Inheritance graph
[legend]
Collaboration diagram for SoccerMonitor:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< std::string,
EPredicate
TPredicateMap
enum  EPredicate { P_PLAYMODES, P_TIME, P_PLAYMODE, P_HALF }

Public Member Functions

 SoccerMonitor ()
virtual ~SoccerMonitor ()
virtual void ParseCustomPredicates (const oxygen::PredicateList &pList)
 This function will be called periodically to do any monitor updates.
TTime GetTime () const
TPlayMode GetPlayMode () const
std::string GetPlayModeString () const
TGameHalf GetGameHalf () const
std::string GetGameHalfString () const

Protected Member Functions

void ParsePredicates (const oxygen::PredicateList &pList)
void ParsePlayModes (const oxygen::Predicate &pred)
void SetupPredicateMap ()

Protected Attributes

TPredicateMap mPredMap
float mTime
int mPlayMode
int mHalf
std::vector< std::string > mPlayModes

Detailed Description

Definition at line 30 of file soccermonitor.h.


Member Typedef Documentation

typedef std::map<std::string, EPredicate> SoccerMonitor::TPredicateMap
 

Definition at line 41 of file soccermonitor.h.


Member Enumeration Documentation

enum SoccerMonitor::EPredicate
 

Enumerator:
P_PLAYMODES 
P_TIME  list of play mode strings
P_PLAYMODE  game time update
P_HALF  game half update

Definition at line 33 of file soccermonitor.h.


Constructor & Destructor Documentation

SoccerMonitor::SoccerMonitor  ) 
 

Definition at line 28 of file soccermonitor.cpp.

References mHalf, mPlayMode, mTime, PM_NONE, and SetupPredicateMap().

Here is the call graph for this function:

SoccerMonitor::~SoccerMonitor  )  [virtual]
 

Definition at line 37 of file soccermonitor.cpp.


Member Function Documentation

TGameHalf SoccerMonitor::GetGameHalf  )  const
 

Definition at line 144 of file soccermonitor.cpp.

References mHalf.

string SoccerMonitor::GetGameHalfString  )  const
 

Definition at line 149 of file soccermonitor.cpp.

References mHalf.

TPlayMode SoccerMonitor::GetPlayMode  )  const
 

Definition at line 126 of file soccermonitor.cpp.

References mPlayMode.

string SoccerMonitor::GetPlayModeString  )  const
 

Definition at line 131 of file soccermonitor.cpp.

References mPlayMode, and mPlayModes.

TTime SoccerMonitor::GetTime  )  const
 

Definition at line 121 of file soccermonitor.cpp.

References mTime.

void SoccerMonitor::ParseCustomPredicates const oxygen::PredicateList pList  )  [virtual]
 

This function will be called periodically to do any monitor updates.

Custom predicates received via the SparkMonitorClient are passed as a PredicateList

Implements oxygen::CustomMonitor.

Definition at line 41 of file soccermonitor.cpp.

References ParsePredicates().

Here is the call graph for this function:

void SoccerMonitor::ParsePlayModes const oxygen::Predicate pred  )  [protected]
 

Definition at line 95 of file soccermonitor.cpp.

References zeitgeist::ParameterList::AdvanceValue(), zeitgeist::ParameterList::begin(), zeitgeist::ParameterList::end(), mPlayModes, oxygen::Predicate::parameter, and paramList.

Referenced by ParsePredicates().

Here is the call graph for this function:

void SoccerMonitor::ParsePredicates const oxygen::PredicateList pList  )  [protected]
 

Definition at line 46 of file soccermonitor.cpp.

References oxygen::PredicateList::begin(), oxygen::PredicateList::end(), mHalf, mPlayMode, mPredMap, mTime, oxygen::Predicate::name, P_HALF, P_PLAYMODE, P_PLAYMODES, P_TIME, and ParsePlayModes().

Referenced by ParseCustomPredicates().

Here is the call graph for this function:

void SoccerMonitor::SetupPredicateMap  )  [protected]
 

Definition at line 112 of file soccermonitor.cpp.

References mPredMap, P_HALF, P_PLAYMODE, P_PLAYMODES, and P_TIME.

Referenced by SoccerMonitor().


Member Data Documentation

int SoccerMonitor::mHalf [protected]
 

Definition at line 73 of file soccermonitor.h.

Referenced by GetGameHalf(), GetGameHalfString(), ParsePredicates(), and SoccerMonitor().

int SoccerMonitor::mPlayMode [protected]
 

Definition at line 72 of file soccermonitor.h.

Referenced by GetPlayMode(), GetPlayModeString(), ParsePredicates(), and SoccerMonitor().

std::vector<std::string> SoccerMonitor::mPlayModes [protected]
 

Definition at line 75 of file soccermonitor.h.

Referenced by GetPlayModeString(), and ParsePlayModes().

TPredicateMap SoccerMonitor::mPredMap [protected]
 

Definition at line 69 of file soccermonitor.h.

Referenced by ParsePredicates(), and SetupPredicateMap().

float SoccerMonitor::mTime [protected]
 

Definition at line 71 of file soccermonitor.h.

Referenced by GetTime(), ParsePredicates(), and SoccerMonitor().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:40:42 2006 for rcssserver3d by  doxygen 1.4.4