#include <RoadSource.h>
Inheritance diagram for RoadSource:
Public Member Functions | |
virtual | ~RoadSource () |
Empty virtual destructor for RoadSource. | |
virtual bool | getPoints (utils::Time &time, std::vector< utils::Vec3d > &points, bool blocking=1)=0 |
Get the next set of road points. | |
Static Public Member Functions | |
static const char * | intfName () |
Get the interface name. | |
static RoadSource * | create (const char *spec, utils::SymbolTable *globals=(0L)) |
Create interface from string if not in symbol table already, put in symbol table afterwards under intfName()+Intf . | |
static RoadSource * | create (utils::ConfigFile ¶ms, utils::SymbolTable *globals=(0L)) |
Create interface from file if not in symbol table already, put in symbol table afterwards under intfName() . | |
static RoadSource * | interface (const char *spec, utils::SymbolTable *globals=(0L)) |
Create interface from string if not in symbol table already. | |
static RoadSource * | interface (utils::ConfigFile ¶ms, utils::SymbolTable *globals=(0L)) |
Create interface from params if not in symbol table already. | |
static RoadSource * | generate (const char *spec, utils::SymbolTable *globals=(0L)) |
Create interface from string. | |
static RoadSource * | generate (utils::ConfigFile ¶ms, utils::SymbolTable *globals=(0L)) |
Create interface from a parameter file. | |
static RoadSourceGenerator * | generator (utils::SymbolTable *globals) |
Get the interface generator. | |
static RoadSource * | getIntf (utils::SymbolTable *globals) |
Get the last result of create . | |
static void | clear (utils::SymbolTable *globals) |
Clear the interface out of the symbol table. |
An abstract interface to 3D road information given by an STL vector of 3D points
Definition at line 26 of file RoadSource.h.
|
Empty virtual destructor for RoadSource. For C++ syntax reasons, it is a good idea to explicitly define a virtual destructor, even if empty like this one, to any abstract class like this. Definition at line 32 of file RoadSource.h. |
|
Get the next set of road points. Returns the latest set of road points along with the time at which they were collected. Normally, the call is blocking, i.e., we block until the next unread set of points is acquired, but it can be polling, i.e., it returns immediately with the most recent set of road points.
Implemented in FakeRoadSource, OutputRoadSource, PlayerRoadSource, and ShmemRoadSource. Referenced by OutputRoadSource::getPoints(). |