Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

LoggerRoadDest.cc

Go to the documentation of this file.
00001 
00006 #include "RoadDest.h"
00007 #include "RoadLogger.h"
00008 
00010 class LoggerRoadDest : public RoadDest {
00011  public:
00013   virtual bool outputPoints(utils::Time time,
00014                             const std::vector<utils::Vec3d>& points);
00015 
00017   bool init(utils::ConfigFile& params);
00018 
00019  private:
00020   RoadLogger _logger;  
00021 };
00022 
00024 UTILS_INTF_CREATOR(RoadDest, logger, gen, params, globals)
00025 {
00026   UTILS_INTF_REPORT(RoadDest, logger);
00027   LoggerRoadDest* intf = new LoggerRoadDest();
00028   if (!intf->init(*params)) {
00029     delete intf;
00030     return NULL;
00031   }
00032   return intf;
00033 }
00034 
00035 bool LoggerRoadDest::init(utils::ConfigFile& params)
00036 {
00037   return _logger.open(params);
00038 }
00039 
00040 bool LoggerRoadDest::outputPoints(utils::Time time,
00041                                   const std::vector<utils::Vec3d>& points)
00042 {
00043   return _logger.logPoints(time, points);
00044 }
00045 
00046 
00047 
00048   

Generated on Fri Jun 16 13:21:19 2006 for ModUtils by  doxygen 1.4.4