/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
Dyb::ChannelOverride Struct Reference

#include <ChOr.h>

Collaboration diagram for Dyb::ChannelOverride:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 11 of file ChOr.h.


Constructor & Destructor Documentation

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);
            }
        }

Member Data Documentation

The noisy channel identifier.

Definition at line 59 of file ChOr.h.

The start of the validity range.

Definition at line 62 of file ChOr.h.

The end of the validity range.

Definition at line 65 of file ChOr.h.

The goodness (or not) of the channel in the validity range.

Definition at line 68 of file ChOr.h.


The documentation for this struct was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:00:00 for DybMetaDataSvc by doxygen 1.7.4