Changeset 10186
- Timestamp:
- 03/01/11 07:38:47 (14 years ago)
- Location:
- fact/FADctrl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FAD.cc
r10164 r10186 52 52 // Constructor 53 53 // 54 FAD::FAD( ): EvidenceServer(SERVER_NAME) {54 FAD::FAD(std::vector<std::string> List): EvidenceServer(SERVER_NAME) { 55 55 56 56 // Initialization … … 71 71 72 72 // Construct boards 73 BoardList = Tokenize(GetConfig("BoardList")); 73 if (List.empty()) BoardList = Tokenize(GetConfig("BoardList")); 74 else BoardList = List; 74 75 75 76 for (unsigned int i=0; i<BoardList.size(); i++) { -
fact/FADctrl/FAD.h
r10164 r10186 63 63 64 64 public: 65 FAD( );65 FAD(std::vector<std::string>); 66 66 ~FAD(); 67 67 -
fact/FADctrl/FADctrl.cc
r10164 r10186 17 17 // ================ 18 18 19 int main( ) {19 int main(int argc, char *argv[]) { 20 20 21 std::vector<std::string> List; 22 23 // Board list from command line? 24 for (int i=1; i<argc; i++) List.push_back(argv[i]); 25 21 26 // Uses getc() for readline library (allows interruption by signal) and load history buffer 22 27 rl_getc_function = getc; … … 27 32 28 33 // Construct main instance (static ensures destructor is called with exit()) 29 static class FAD M ;34 static class FAD M(List); 30 35 31 36 // Do not kill process if writing to closed socket -
fact/FADctrl/History.txt
r10185 r10186 15 15 18/2/2011 Added 'reconnect' command 16 16 28/2/2011 Removed 'static' keywords in FADBoard::ReadLoop() 17 1/3/2011 Board list can be passed via command line
Note:
See TracChangeset
for help on using the changeset viewer.