equal
deleted
inserted
replaced
65 |
65 |
66 /****************************************************************************/ |
66 /****************************************************************************/ |
67 |
67 |
68 void CommandMaster::execute(const StringVector &args) |
68 void CommandMaster::execute(const StringVector &args) |
69 { |
69 { |
|
70 MasterIndexList masterIndices; |
70 ec_ioctl_master_t data; |
71 ec_ioctl_master_t data; |
71 stringstream err; |
72 stringstream err; |
72 unsigned int i, j; |
73 unsigned int i, j; |
73 time_t epoch; |
74 time_t epoch; |
74 char time_str[MAX_TIME_STR_SIZE + 1]; |
75 char time_str[MAX_TIME_STR_SIZE + 1]; |
77 if (args.size()) { |
78 if (args.size()) { |
78 err << "'" << getName() << "' takes no arguments!"; |
79 err << "'" << getName() << "' takes no arguments!"; |
79 throwInvalidUsageException(err); |
80 throwInvalidUsageException(err); |
80 } |
81 } |
81 |
82 |
|
83 masterIndices = getMasterIndices(); |
82 MasterIndexList::const_iterator mi; |
84 MasterIndexList::const_iterator mi; |
83 for (mi = getMasterIndices().begin(); |
85 for (mi = masterIndices.begin(); |
84 mi != getMasterIndices().end(); mi++) { |
86 mi != masterIndices.end(); mi++) { |
85 MasterDevice m(*mi); |
87 MasterDevice m(*mi); |
86 m.open(MasterDevice::Read); |
88 m.open(MasterDevice::Read); |
87 m.getMaster(&data); |
89 m.getMaster(&data); |
88 |
90 |
89 cout |
91 cout |