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

cptest.cpp

Go to the documentation of this file.
00001 #include <iostream>
00002 using namespace std;
00003 #include "CfgParse.h"
00004 
00005 int main() {
00006         CfgParse parser;
00007         cfgBody *data;
00008 
00009         data = parser.go("../ConfigFiles/Whorl1Initialize.txt");
00010         for (int i = 0; data[i].devTy[0]; i++) {
00011                 cout << "\n\nDevice: " << data[i].devNm << endl;
00012                 cout << "  Type: " << data[i].devTy;
00013                 for (int j = 0; data[i].keys[j][0]; j++) {
00014                         printf("\n    '%s' = ", data[i].keys[j]);
00015                         for (int k = 0; data[i].vals[j][k][0]; k++)
00016                                 printf("\n\t'%s'", data[i].vals[j][k]);
00017                 }
00018         }
00019         cout << endl;
00020 }

Generated on Wed Sep 5 12:54:18 2007 for DSACSS Operational Code by  doxygen 1.3.9.1