Aria
2.8.0
|
A group of map file lines which have a logical parent / child relationship. More...
#include <ArMapUtils.h>
Public Member Functions | |
ArMapFileLineGroup (const ArMapFileLine &parentLine) | |
Contructs a new group with the specified parent. | |
std::vector< ArMapFileLine > * | getChildLines () |
Returns a pointer to the list of child map file lines. | |
ArMapFileLine * | getParentLine () |
Returns a pointer to the parent map file line. | |
void | log () |
Writes the group to the Aria log. | |
~ArMapFileLineGroup () | |
Destructor. | |
Public Attributes | |
std::vector< ArMapFileLine > | myChildLines |
A list of child map file lines. | |
ArMapFileLine | myParentLine |
The map file line that is the parent of the group. | |
Friends | |
struct | ArMapFileLineGroupCompare |
bool | operator< (const ArMapFileLineGroup &line1, const ArMapFileLineGroup &line2) |
Determines whether group1's parent text is less than group2's parent text. | |
A group of map file lines which have a logical parent / child relationship.
Some of the text lines in a map file may have a parent / child relationship. For example, the text line that starts a route is the parent of the following lines that describe the contents of the route. This class is used to express this relationship. Note that there is currently no concept of a grandparent relationship in the map file lines.