00001 // Copyright (C) 2007 University of Louisiana at Lafayette 00002 // Authors: Suresh Golconda 00003 00004 // track annotation contains list of annotation of the track. 00005 00006 #ifndef CAJUN_TRACK_ANNOTATION_H 00007 #define CAJUN_TRACK_ANNOTATION_H 00008 00009 #include <vector> 00010 #include <string> 00011 00012 namespace cajun 00013 { 00014 struct lane_clipage_info_t 00015 { 00016 unsigned sid; // segment on which lanes fall 00017 unsigned lid1; // longer lane's lane id 00018 unsigned lid2; // shorter and intermediately starting lane's 00019 // lid 00020 unsigned wid_before; // wid on lid1, before which not to try 00021 // change lane to lid2 00022 }; 00023 00024 typedef std::vector<lane_clipage_info_t> lane_clipage_list_t; 00025 00026 class track_annotation_t 00027 { 00028 00029 lane_clipage_list_t m_lane_clipages; 00030 public: 00031 track_annotation_t () { }; 00032 00033 bool load_annotation (std::string const &ann_file); 00034 00035 const lane_clipage_list_t& get_lane_clipages () const 00036 { return m_lane_clipages; } 00037 }; 00038 00039 }; 00040 00041 #endif
1.6.1