/search.css" rel="stylesheet" type="text/css"/> /search.js">
#include <ChOr.h>
Public Member Functions | |
ChannelOverride (std::string desc) | |
Public Attributes | |
DayaBay::FeeChannelId | channel |
The noisy channel identifier. | |
TimeStamp | start |
The start of the validity range. | |
TimeStamp | stop |
The end of the validity range. | |
bool | good |
The goodness (or not) of the channel in the validity range. |
Dyb::ChannelOverride::ChannelOverride | ( | std::string | desc | ) | [inline] |
Definition at line 13 of file ChOr.h.
: channel(0) , start(0) , stop(0) , good(true) { // in a most brutish way, read in // quality:feechannelid:start:stop // good/bad std::string::size_type at = desc.find(":"); if (desc.substr(0, at) == "bad") { good = false; } // FeeChanelId desc = desc.substr(at+1); at = desc.find(":"); int chid = atoi(desc.substr(0,at).c_str()); channel = DayaBay::FeeChannelId(chid); // start desc = desc.substr(at+1); at = desc.find(":"); int ts = atoi(desc.substr(0,at).c_str()); if (!ts) { start = TimeStamp::GetBOT(); } else { start = TimeStamp(ts); } // start desc = desc.substr(at+1); at = desc.find(":"); ts = atoi(desc.substr(0,at).c_str()); if (!ts) { stop = TimeStamp::GetEOT(); } else { stop = TimeStamp(ts); } }