29 , fHeaderMask{0xffffffff}
40 , fMultiBlockMode{false}
89 unsigned long val = stoul(item, &
len, 0);
92 ostr <<
"Value " << val <<
" out of range. Must be <= " <<
kMaxUInt <<
". "
93 <<
"Fix the cratemap.";
94 throw std::out_of_range(ostr.str());
101 const vector<ConfigStrReq>& req )
105 if( !configstr || !*configstr || req.empty() )
110 vector<string> items;
112 Podd::Tokenize(configstr,
", \t\n\v\f\r", items);
113 for(
auto item : items ) {
115 if( idx >= req.size() ) {
117 ostr <<
"Too many configuration parameters in string \"" << configstr
118 <<
"\". Maximum number is " << req.size() <<
". Fix the cratemap.";
119 throw invalid_argument(ostr.str());
123 auto pos = item.find(
'=');
124 if( pos != string::npos ) {
126 name = item.substr(0,pos);
135 if( it != req.end() ) {
141 ostr <<
"Unsupported parameter name \"" <<
name <<
"\". "
142 <<
"Fix the cratemap.";
143 throw invalid_argument(ostr.str());
203 ::Error(
"Module::DoRegister",
"Attempt to register empty class name. "
204 "Coding error. Call expert." );
211 ::Error(
"Module::DoRegister",
"Attempt to register duplicate decoder module "
212 "class \"%s\". Coding error. Call expert.", info.
fClassName );
249 if(
len == 0 )
return 0;
250 return LoadSlot(sldat, evbuffer+pos, evbuffer+pos+
len-1);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
static TypeIter_t DoRegister(const ModuleType ®istration_info)
virtual void Clear(Option_t *="")
std::set< ModuleType > TypeSet_t
std::ofstream * fDebugFile
virtual UInt_t LoadSlot(THaSlotData *sldat, const UInt_t *evbuffer, const UInt_t *pstop)=0
static TypeSet_t & fgModuleTypes()
virtual Bool_t IsSlot(UInt_t rdata)
static void ParseConfigStr(const char *configstr, const std::vector< ConfigStrReq > &req)
virtual void DoPrint() const
TypeSet_t::iterator TypeIter_t
virtual void Error(const char *method, const char *msgfmt,...) const
static void StoreValue(const string &item, UInt_t &data)