next up previous contents
Next: Link class Up: Street network data and Previous: SimWorld class   Contents

Nodes input

Reading the nodes file would go as follows:


{}
#include <fstream>
#include <string>
...
const char* NODES_FILE_NAME = "T.nodes";
...
class Node { 
    ...
};
...
class SimWorld {
    ...
};
...
/home/nagel/src/book/sim/book/SimWorld::readNodes

The convert methods are as follows:


/home/nagel/src/book/sim/book/convert

This would be called from the main program via


{}
int main()
{       
        SimWorld simWorld ;
        simWorld.readNodes() ;
        ...
}

Task 6.2   Write a program which reads the node data.



2004-02-02