Aria
2.8.0
|
Encapsulates the data regarding a text line in a map file. More...
#include <ArMapUtils.h>
Public Member Functions | |
ArMapFileLine () | |
Default constructor. | |
ArMapFileLine (int lineNum, const char *lineText) | |
Constructor which sets the line number and text. | |
ArMapFileLine (const ArMapFileLine &other) | |
Copy constructor. | |
int | getLineNum () const |
Returns the line number of the map file line. | |
const char * | getLineText () const |
Returns the text of the map file line. | |
ArMapFileLine & | operator= (const ArMapFileLine &other) |
Assignment operator. | |
~ArMapFileLine () | |
Destructor. | |
Protected Attributes | |
int | myLineNum |
Line number. | |
std::string | myLineText |
Line text. | |
Friends | |
struct | ArMapFileLineCompare |
bool | operator< (const ArMapFileLine &line1, const ArMapFileLine &line2) |
Determines whether the first ArMapFileLine is less than the second. More... | |
Encapsulates the data regarding a text line in a map file.
ArMapFileLine is the building block for map change comparisons. It is simply the line number and associated text.
|
friend |
Determines whether the first ArMapFileLine is less than the second.
Line1 is less than Line2 if its line number is less than that of Line2. If the two line nubmers are equal, then Line1 is less than Line2 if its text is less.