lobot::DirList Class Reference

An object to help keep track of which dataset should be analyzed next. More...

#include <Robots/LoBot/baylog/LoDirList.H>

Collaboration diagram for lobot::DirList:
Collaboration graph
[legend]

List of all members.

Classes

struct  eol

Public Member Functions

 DirList (const std::vector< std::string > &dirs)
int size () const
std::string next () const

Detailed Description

An object to help keep track of which dataset should be analyzed next.

This class implements a thread-safe interface for the lobot::BaylogAnalyzer threads so they can figure out which Bayesian TTI prediction experiment's dataset should be loaded and parsed next. When all the datasets have been processed, further attempts at retrieving the name of the next one for analysis will result in an exception. The analyzer threads can use the exception as a signal to wind up their work.

Definition at line 91 of file LoDirList.H.


Constructor & Destructor Documentation

lobot::DirList::DirList ( const std::vector< std::string > &  dirs  ) 

When this object is created, it should be passed the list of names of directories containing the relevant logs.

NOTE: It is important that the analyzer threads not yet be active when this class is instantiated.

Definition at line 53 of file LoDirList.C.


Member Function Documentation

std::string lobot::DirList::next (  )  const

This method retrieves the next name on the list. When all the names have been retrieved, it will throw an end-of-list exception to indicate to the analyzer threads that it's time for them to wind up their business.

Definition at line 59 of file LoDirList.C.

int lobot::DirList::size (  )  const [inline]

This method returns the number of directories held by this list object.

Definition at line 123 of file LoDirList.H.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:27 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3