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

TextGen Class Reference

#include <TextGen.H>

Collaboration diagram for TextGen:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class responsible for inserting corresponding text turn-by-turn directions into the search results, to go along with the interactive route map.


Public Member Functions

 TextGen (DBInterface *db)
 Constructor takes a pointer to the database as a parameter.
 ~TextGen ()
string generateText (path_t *p)
 Method that generates turn-by-turn directions to correspond with the visual search results. Includes information about street names and distances traveled.
string testText (path_t *p)
string dbltostr3 (double d)
 Method to convert a double to a string.
pair< int, double > findAngleAndTurn (double m_x0, double m_y0, double m_x1, double m_y1, double m_x2, double m_y2)
 Method to detrmine, based on three points, the direction and angle of the turn at point two.
int addQuantPath (path_t *p, int stRank, int roRank, int trRank, int shRank)
 Method that attached quantitative data regarding the entire path to the text directions.
int addQuantSegFeedback (string rid, int stRank, int roRank, int trRank, int shRank)
 Method that attached quantitative data regarding sepcific segments to the text directions.
int addQualFeedback (string routeid, string comm, string commType, string auth)
 Method that attached qualitative feedback regarding the route to the text directions.
int addQuantFeedbackHelper (vector< seg_t * > *t, int stRank, int roRank, int trRank, int shRank)
 Method to assist addQualFeedback(...) in attaching qualitative feedback to a route.

Private Attributes

DBInterface_db
 Pointer to the database.


Constructor & Destructor Documentation

TextGen::TextGen DBInterface db  ) 
 

Constructor takes a pointer to the database as a parameter.

TextGen::~TextGen  )  [inline]
 


Member Function Documentation

int TextGen::addQualFeedback string  routeid,
string  comm,
string  commType,
string  auth
 

Method that attached qualitative feedback regarding the route to the text directions.

Here is the call graph for this function:

int TextGen::addQuantFeedbackHelper vector< seg_t * > *  t,
int  stRank,
int  roRank,
int  trRank,
int  shRank
 

Method to assist addQualFeedback(...) in attaching qualitative feedback to a route.

Here is the call graph for this function:

int TextGen::addQuantPath path_t p,
int  stRank,
int  roRank,
int  trRank,
int  shRank
 

Method that attached quantitative data regarding the entire path to the text directions.

Here is the call graph for this function:

int TextGen::addQuantSegFeedback string  rid,
int  stRank,
int  roRank,
int  trRank,
int  shRank
 

Method that attached quantitative data regarding sepcific segments to the text directions.

Here is the call graph for this function:

string TextGen::dbltostr3 double  d  ) 
 

Method to convert a double to a string.

pair< int, double > TextGen::findAngleAndTurn double  m_x0,
double  m_y0,
double  m_x1,
double  m_y1,
double  m_x2,
double  m_y2
 

Method to detrmine, based on three points, the direction and angle of the turn at point two.

string TextGen::generateText path_t p  ) 
 

Method that generates turn-by-turn directions to correspond with the visual search results. Includes information about street names and distances traveled.

Here is the call graph for this function:

string TextGen::testText path_t p  ) 
 

Here is the call graph for this function:


Member Data Documentation

DBInterface* TextGen::_db [private]
 

Pointer to the database.


The documentation for this class was generated from the following files:
Generated on Mon May 16 11:08:58 2005 for BikeQuest by  doxygen 1.4.0