#include "calibUtil/StripSrv.h"
#include "facilities/Util.h"
#include <string>
#include <iostream>
#include <fstream>
Go to the source code of this file.
Classes | |
class | MyObject |
file for sample client More... | |
Functions | |
int | main (int argc, char *argv[]) |
Definition in file test_strips.cxx.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 26 of file test_strips.cxx.
References genRecEmupikp::i, and deljobs::string.
00026 { 00027 using calibUtil::StripSrv; 00028 00029 std::string name = "$(CALIBUTILROOT)/xml/test/testHot.xml"; 00030 00031 if (argc > 1) { 00032 name = std::string((argv[1])); 00033 } 00034 facilities::Util::expandEnvVar(&name); 00035 00036 StripSrv ssObj(name); 00037 00038 std::vector<StripSrv::towerRC> trc; 00039 ssObj.getBadTowers(trc); 00040 for (unsigned int i = 0; i < trc.size(); i++ ) { 00041 std::cout << "Tower id is (" << trc[i].row << ", " << trc[i].col; 00042 std::cout << ")" << std::endl; 00043 00044 } 00045 std::cout << std::endl; 00046 00047 std::cout<< "Bad type is " << (int) ssObj.getBadType() << std::endl; 00048 00049 std::cout << "calType name is " << ssObj.getCalType() << std::endl; 00050 00051 MyObject cli; 00052 ssObj.traverseInfo(&cli); 00053 00054 return(0); 00055 00056 } /* end of main */