Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Location Class Reference

Class for location dependent configuration. More...

#include <Location.h>

List of all members.

Public Member Functions

 Location ()
 constructor

const char * getFilename (const char *file)
 returns the filename and relative path to a given configuration file without the robotdesign-prefix in the path (root of the location)

const char * getModelFilename (const char *file)
 returns the filename and relative path to a given configuration file for the current robotdesign-prefix

const char * getModelFilename (const char *file, RobotDesign::Design design)
 returns the filename and relative path to a given configuration file and given robotdesign

const char * getName () const
 returns the name of the location


Private Attributes

char name [100]
 the name of the location

char filename [100]


Detailed Description

Class for location dependent configuration.

Definition at line 23 of file Location.h.


Constructor & Destructor Documentation

Location::Location  ) 
 

constructor

Definition at line 21 of file Location.cpp.

References InStream< InFile, InConfig >::eof(), and InFile::exists().

Here is the call graph for this function:


Member Function Documentation

const char * Location::getFilename const char *  file  ) 
 

returns the filename and relative path to a given configuration file without the robotdesign-prefix in the path (root of the location)

Definition at line 31 of file Location.cpp.

References filename.

const char * Location::getModelFilename const char *  file  ) 
 

returns the filename and relative path to a given configuration file for the current robotdesign-prefix

Definition at line 40 of file Location.cpp.

const char * Location::getModelFilename const char *  file,
RobotDesign::Design  design
 

returns the filename and relative path to a given configuration file and given robotdesign

Definition at line 45 of file Location.cpp.

References filename.

const char* Location::getName  )  const [inline]
 

returns the name of the location

Definition at line 45 of file Location.h.


Member Data Documentation

char Location::name[100] [private]
 

the name of the location

Definition at line 52 of file Location.h.

char Location::filename[100] [private]
 

Definition at line 54 of file Location.h.

Referenced by getFilename(), and getModelFilename().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:09:24 2004 for GT2004 by doxygen 1.3.6