source: trunk/FACT++/src/HeadersFTM.h@ 11299

Last change on this file since 11299 was 11296, checked in by tbretz, 14 years ago
Moved state definitions here; added operator== to StaticData
File size: 21.9 KB
Line 
1#ifndef FACT_HeadersFTM
2#define FACT_HeadersFTM
3
4#include <ostream>
5
6// For debugging
7#include <iostream>
8
9#include "ByteOrder.h"
10
11// ====================================================================
12
13
14namespace FTM
15{
16 enum States
17 {
18 kFtmUndefined = 0,
19
20 // FTM internal states
21 kFtmIdle = 1, ///< Trigger output disabled, configuration possible
22 kFtmConfig = 2, ///< FTM and FTUs are being reconfigured
23 kFtmRunning = 3, ///< Trigger output enabled, configuration ignored
24 kFtmCalib = 4,
25 };
26
27 enum StateMachine
28 {
29 kDisconnected = 1, //ConnectionFTM::kDisconnected,
30 kConnected ,//= ConnectionFTM::kConnected,
31 kIdle ,//= ConnectionFTM::kIdle,
32 kTakingData ,//= ConnectionFTM::kTakingData,
33 kConfiguring1,
34 kConfiguring2,
35 kConfigured,
36
37 kConfigError1 = 0x101,
38 kConfigError2 = 0x102,
39
40 kCmdTest
41 };
42
43 /// Command codes for FTM communication
44 enum Commands
45 {
46 // First word
47 kCmdRead = 0x0001, ///< Request data
48 kCmdWrite = 0x0002, ///< Send data
49 kCmdStartRun = 0x0004, ///< Enable the trigger output
50 kCmdStopRun = 0x0008, ///< Disable the trigger output
51 kCmdPing = 0x0010, ///< Ping all FTUs (get FTU list)
52 kCmdCrateReset = 0x0020, ///< Reboot (no power cycle) all FTUs and FADs of one crate
53 kCmdDisableReports = 0x0040, ///< Disable transmission of rate-reports (dynamic data)
54 kCmdToggleLed = 0xc000,
55
56 // second word for read and write
57 kCmdStaticData = 0x0001, ///< Specifies that static (configuration) data is read/written
58 kCmdDynamicData = 0x0002, ///< Specifies that dynamic data is read/written
59 kCmdRegister = 0x0004, ///< Specifies that a register is read/written
60
61 // second word for StartRun
62 kStartRun = 0x0001, ///< ...until kCmdStopRun
63 kTakeNevents = 0x0002, ///< ...fixed number of events
64
65 // second word for kCmdCrateReset
66 kResetCrate0 = 0x0001,
67 kResetCrate1 = 0x0002,
68 kResetCrate2 = 0x0004,
69 kResetCrate3 = 0x0008,
70 };
71
72
73 /// Types sent in the header of the following data
74 enum Types
75 {
76 kHeader = 0, ///< Local extension to identify a header in fCounter
77 kStaticData = 1, ///< Static (configuration) data
78 kDynamicData = 2, ///< Dynamic data (rates)
79 kFtuList = 3, ///< FTU list (answer of ping)
80 kErrorList = 4, ///< Error list (error when FTU communication failed)
81 kRegister = 5, ///< A requested register value
82 };
83
84 // --------------------------------------------------------------------
85
86 enum Delimiter
87 {
88 kDelimiterStart = 0xfb01, ///< Start delimiter send before each header
89 kDelimiterEnd = 0x04fe ///< End delimiter send after each data block
90 };
91
92 struct Header
93 {
94 uint16_t fDelimiter; ///< Start delimiter
95 uint16_t fType; ///< Type of the data to be received after the header
96 uint16_t fDataSize; ///< Size in words to be received after the header (incl end delim.)
97 uint16_t fState; ///< State of the FTM central state machine
98 uint64_t fBoardId; ///< FPGA device DNA (unique chip id)
99 uint16_t fFirmwareId; ///< Version number
100 uint32_t fTriggerCounter; ///< FTM internal counter of all trigger decision independant of trigger-line enable/disable (reset: start/stop run)
101 uint64_t fTimeStamp; ///< Internal counter (micro-seconds, reset: start/stop run)
102
103 Header() { init(*this); }
104
105 std::vector<uint16_t> HtoN() const
106 {
107 Header h(*this);
108
109 Reverse(&h.fBoardId);
110 Reverse(&h.fTriggerCounter);
111 Reverse(&h.fTimeStamp);
112
113 return htoncpy(h);
114 }
115 void operator=(const std::vector<uint16_t> &vec)
116 {
117 ntohcpy(vec, *this);
118
119 Reverse(&fBoardId);
120 Reverse(&fTriggerCounter);
121 Reverse(&fTimeStamp);
122 }
123
124 void clear() { reset(*this); }
125 void print(std::ostream &out) const;
126
127 } __attribute__((__packed__));
128
129 struct DimPassport
130 {
131 uint64_t fBoardId;
132 uint16_t fFirmwareId;
133
134 DimPassport(const Header &h) :
135 fBoardId(h.fBoardId),
136 fFirmwareId(h.fFirmwareId)
137 {
138 }
139 } __attribute__((__packed__));
140
141 struct DimTriggerCounter
142 {
143 uint64_t fTimeStamp;
144 uint32_t fTriggerCounter;
145
146 DimTriggerCounter(const Header &h) :
147 fTimeStamp(h.fTimeStamp),
148 fTriggerCounter(h.fTriggerCounter)
149 {
150 }
151 } __attribute__((__packed__));
152
153
154 struct StaticDataBoard
155 {
156 uint16_t fEnable[4]; /// enable of 4x9 pixels coded as 4x9bits
157 uint16_t fDAC[5]; /// 0-3 (A-D) Threshold of patches, 4 (H) Threshold for N out of 4 (12 bit each)
158 uint16_t fPrescaling; /// Internal readout time of FTUs for trigger counter
159
160 StaticDataBoard() { init(*this); }
161
162 void print(std::ostream &out) const;
163
164 } __attribute__((__packed__));
165
166 struct StaticData
167 {
168 enum Limits
169 {
170 kMaxMultiplicity = 40, ///< Minimum required trigger multiplicity
171 kMaxWindow = 0xf, ///< (4ns * x + 8ns) At least N (multiplicity) rising edges (trigger signal) within this window
172 kMaxDeadTime = 0xffff, ///< (4ns * x + 8ns)
173 kMaxDelayTimeMarker = 0x3ff, ///< (4ns * x + 8ns)
174 kMaxDelayTrigger = 0x3ff, ///< (4ns * x + 8ns)
175 kMaxTriggerInterval = 0x3ff, ///<
176 kMaxSequence = 0x1f,
177 kMaxDAC = 0xfff,
178 kMaxAddr = 0xfff,
179 kMaxPatchIdx = 159,
180 kMaxPixelIdx = 1439,
181 kMaskSettings = 0xf,
182 kMaskLEDs = 0xf,
183 };
184
185 enum GeneralSettings
186 {
187 kTrigger = 0x80, ///< Physics trigger decision (PhysicTrigger)
188 kPedestal = 0x40, ///< Pedestal trigger (artifical)
189 kLPint = 0x20, ///< Enable artificial trigger after light pulse (LP2)
190 kLPext = 0x10, ///< Enable trigger decision after light pulse (CalibrationTrigger, LP1)
191 kExt2 = 0x08, ///< External trigger signal 2
192 kExt1 = 0x04, ///< External trigger signal 1
193 kVeto = 0x02, ///< Veto trigger decision / artifical triggers
194 kClockConditioner = 0x01, ///< Select clock conditioner frequency (1) / time marker (0) as output
195 };
196
197 uint16_t fGeneralSettings; // Enable for different trigger types / select for TIM/ClockConditioner output (only 8 bit used)
198 uint16_t fStatusLEDs; // only 8 bit used
199 uint16_t fTriggerInterval; // [ms] Interval between two artificial triggers (no matter which type) minimum 1ms, 10 bit
200 uint16_t fTriggerSequence; // Ratio between trigger types send as artificial trigger (in this order) 3x5bit
201 uint64_t fDummy0;
202 uint16_t fMultiplicityPhysics; /// Required trigger multiplicity for physcis triggers (0-40)
203 uint16_t fMultiplicityCalib; /// Required trigger multiplicity calibration (LPext) triggers (0-40)
204 uint16_t fDelayTrigger; /// (4ns * x + 8ns) FTM internal programmable delay between trigger decision and output
205 uint16_t fDelayTimeMarker; /// (4ns * x + 8ns) FTM internal programmable delay between trigger descision and time marker output
206 uint16_t fDeadTime; /// (4ns * x + 8ns) FTM internal programmable dead time after trigger decision
207 uint32_t fClockConditioner[8]; /// R0, R1, R8, R9, R11, R13, R14, R15
208 uint16_t fWindowPhysics; /// (4ns * x + 8ns) At least N (multiplicity) rising edges (trigger signal) within this window
209 uint16_t fWindowCalib; /// (4ns * x + 8ns) At least N (multiplicity) rising edges (trigger signal) within this window
210 uint16_t fDummy1;
211
212 StaticDataBoard fBoard[4][10]; // 4 crates * 10 boards (Crate0/FTU0 == readout time of FTUs)
213
214 uint16_t fActiveFTU[4]; // 4 crates * 10 bits (FTU enable)
215
216 StaticData() { init(*this); }
217
218 std::vector<uint16_t> HtoN() const
219 {
220 StaticData d(*this);
221 for (int i=0; i<8; i++)
222 Reverse(d.fClockConditioner+i);
223
224 return htoncpy(d);
225 }
226
227 void operator=(const std::vector<uint16_t> &vec)
228 {
229 ntohcpy(vec, *this);
230
231 for (int i=0; i<8; i++)
232 Reverse(fClockConditioner+i);
233 }
234
235 bool operator==(const StaticData &d) const
236 {
237 return memcmp(this, &d, sizeof(StaticData))==0;
238 }
239
240 void clear() { reset(*this); }
241 void print(std::ostream &out) const;
242
243 StaticDataBoard &operator[](int i) { return fBoard[i/10][i%10]; }
244 const StaticDataBoard &operator[](int i) const { return fBoard[i/10][i%10]; }
245
246 void EnableFTU(int i) { fActiveFTU[i/10] |= (1<<(i%10)); }
247 void DisableFTU(int i) { fActiveFTU[i/10] &= ~(1<<(i%10)); }
248
249 void EnableAllFTU() { for (int i=0; i<4; i++) fActiveFTU[i] = 0x3ff; }
250 void DisableAllFTU() { for (int i=0; i<4; i++) fActiveFTU[i] = 0; }
251
252 void ToggleFTU(int i) { fActiveFTU[i/10] ^= (1<<(i%10)); }
253
254 void Enable(GeneralSettings type, bool enable)
255 {
256 if (enable)
257 fGeneralSettings |= uint16_t(type);
258 else
259 fGeneralSettings &= ~uint16_t(type); }
260
261 bool IsEnabled(GeneralSettings type) const { return fGeneralSettings&uint16_t(type); }
262
263 void EnablePixel(int idx, bool enable)
264 {
265 const int pixel = idx%9;
266 const int patch = (idx/9)%4;
267 const int board = (idx/9)/4;
268
269 uint16_t &pix = fBoard[board/10][board%10].fEnable[patch];
270
271 if (enable)
272 pix |= (1<<pixel);
273 else
274 pix &= ~(1<<pixel);
275 }
276
277 bool Enabled(uint16_t idx) const
278 {
279 const int pixel = idx%9;
280 const int patch = (idx/9)%4;
281 const int board = (idx/9)/4;
282
283 return (fBoard[board/10][board%10].fEnable[patch]>>pixel)&1;
284 }
285
286 uint8_t GetSequencePed() const { return (fTriggerSequence>>10)&0x1f; }
287 uint8_t GetSequenceLPint() const { return (fTriggerSequence>> 5)&0x1f; }
288 uint8_t GetSequenceLPext() const { return (fTriggerSequence) &0x1f; }
289
290 } __attribute__((__packed__));
291
292 // DimStructures must be a multiple of two... I don't know why
293 struct DimStaticData
294 {
295 uint64_t fTimeStamp;
296 //8
297 uint16_t fGeneralSettings; // only 8 bit used
298 uint16_t fStatusLEDs; // only 8 bit used
299 uint64_t fActiveFTU; // 40 bits in row
300 //20
301 uint16_t fTriggerInterval; // only 10 bit used
302 //22
303 uint16_t fTriggerSeqLPint; // only 5bits used
304 uint16_t fTriggerSeqLPext; // only 5bits used
305 uint16_t fTriggerSeqPed; // only 5bits used
306 //28
307 uint16_t fMultiplicityPhysics; // 0-40
308 uint16_t fMultiplicityCalib; // 0-40
309 //32
310 uint16_t fWindowPhysics;
311 uint16_t fWindowCalib;
312 //36
313 uint16_t fDelayTrigger;
314 uint16_t fDelayTimeMarker;
315 uint32_t fDeadTime;
316 //44
317 uint32_t fClockConditioner[8];
318 //60
319 uint16_t fEnable[90]; // 160*9bit = 180byte
320 uint16_t fThreshold[160];
321 uint16_t fMultiplicity[40]; // N out of 4
322 uint16_t fPrescaling[40];
323 // 640+60 = 700
324
325 bool HasTrigger() const { return fGeneralSettings & StaticData::kTrigger; }
326 bool HasPedestal() const { return fGeneralSettings & StaticData::kPedestal; }
327 bool HasLPext() const { return fGeneralSettings & StaticData::kLPext; }
328 bool HasLPint() const { return fGeneralSettings & StaticData::kLPint; }
329 bool HasExt2() const { return fGeneralSettings & StaticData::kExt2; }
330 bool HasExt1() const { return fGeneralSettings & StaticData::kExt1; }
331 bool HasVeto() const { return fGeneralSettings & StaticData::kVeto; }
332 bool HasClockConditioner() const { return fGeneralSettings & StaticData::kClockConditioner; }
333
334 bool IsActive(int i) const { return fActiveFTU&(uint64_t(1)<<i); }
335 bool IsEnabled(int i) const { return fEnable[i/16]&(1<<(i%16)); }
336
337 DimStaticData() { memset(this, 0, sizeof(DimStaticData)); }
338
339 DimStaticData(const Header &h, const StaticData &d) :
340 fTimeStamp(h.fTimeStamp),
341 fGeneralSettings(d.fGeneralSettings),
342 fStatusLEDs(d.fStatusLEDs),
343 fActiveFTU( uint64_t(d.fActiveFTU[0]) |
344 (uint64_t(d.fActiveFTU[1])<<10) |
345 (uint64_t(d.fActiveFTU[2])<<20) |
346 (uint64_t(d.fActiveFTU[3])<<30)),
347 fTriggerInterval(d.fTriggerInterval),
348 fTriggerSeqLPint((d.fTriggerSequence>>5)&0x1f),
349 fTriggerSeqLPext((d.fTriggerSequence)&0x1f),
350 fTriggerSeqPed((d.fTriggerSequence>>10)&0x1f),
351 fMultiplicityPhysics(d.fMultiplicityPhysics),
352 fMultiplicityCalib(d.fMultiplicityCalib),
353 fWindowPhysics(d.fWindowPhysics*4+8),
354 fWindowCalib(d.fWindowCalib*4+8),
355 fDelayTrigger(d.fDelayTrigger*4+8),
356 fDelayTimeMarker(d.fDelayTimeMarker*4+8),
357 fDeadTime(uint32_t(d.fDeadTime)*4+8)
358 {
359 memcpy(fClockConditioner, d.fClockConditioner, sizeof(uint32_t)*8);
360
361 uint16_t src[160];
362 for (int i=0; i<40; i++)
363 {
364 for (int j=0; j<4; j++)
365 {
366 src[i*4+j] = d[i].fEnable[j];
367 fThreshold[i*4+j] = d[i].fDAC[j];
368 }
369
370 fMultiplicity[i] = d[i].fDAC[4];
371 fPrescaling[i] = d[i].fPrescaling+1;
372 }
373 bitcpy(fEnable, 90, src, 160, 9);
374 }
375
376 } __attribute__((__packed__));
377
378
379 struct DynamicDataBoard
380 {
381 uint32_t fRatePatch[4]; // Patch 0,1,2,3
382 uint32_t fRateTotal; // Sum
383
384 uint16_t fOverflow; // Patches: bits 0-3, total 4
385 uint16_t fCrcError;
386
387 void print(std::ostream &out) const;
388
389 void reverse()
390 {
391 for (int i=0; i<4; i++)
392 Reverse(fRatePatch+i);
393
394 Reverse(&fRateTotal);
395 }
396
397 uint32_t &operator[](int i) { return fRatePatch[i]; }
398
399 } __attribute__((__packed__));
400
401
402 struct DynamicData
403 {
404 uint64_t fOnTimeCounter;
405 uint16_t fTempSensor[4]; // U45, U46, U48, U49
406
407 DynamicDataBoard fBoard[4][10]; // 4 crates * 10 boards
408
409 DynamicData() { init(*this); }
410
411 std::vector<uint16_t> HtoN() const
412 {
413 DynamicData d(*this);
414
415 Reverse(&d.fOnTimeCounter);
416
417 for (int c=0; c<4; c++)
418 for (int b=0; b<10; b++)
419 d.fBoard[c][b].reverse();
420
421 return htoncpy(d);
422 }
423
424 void operator=(const std::vector<uint16_t> &vec)
425 {
426 ntohcpy(vec, *this);
427
428 Reverse(&fOnTimeCounter);
429
430 for (int c=0; c<4; c++)
431 for (int b=0; b<10; b++)
432 fBoard[c][b].reverse();
433 }
434
435 void clear() { reset(*this); }
436 void print(std::ostream &out) const;
437
438 DynamicDataBoard &operator[](int i) { return fBoard[i/10][i%10]; }
439 const DynamicDataBoard &operator[](int i) const { return fBoard[i/10][i%10]; }
440
441 } __attribute__((__packed__));
442
443
444 struct DimDynamicData
445 {
446 uint64_t fTimeStamp;
447
448 uint64_t fOnTimeCounter;
449 float fTempSensor[4];
450
451 uint32_t fRatePatch[160];
452
453 uint32_t fRateBoard[40];
454 uint16_t fRateOverflow[40];
455
456 uint16_t fCrcError[40];
457
458 DimDynamicData(const Header &h, const DynamicData &d) :
459 fTimeStamp(h.fTimeStamp),
460 fOnTimeCounter(d.fOnTimeCounter)
461 {
462 for (int i=0; i<4; i++)
463 fTempSensor[i] = d.fTempSensor[i];
464
465 for (int i=0; i<40; i++)
466 {
467 fRateBoard[i] = d[i].fRateTotal;
468 fRateOverflow[i] = d[i].fOverflow;
469 fCrcError[i] = d[i].fCrcError;
470 for (int j=0; j<4; j++)
471 fRatePatch[i*4+j] = d[i].fRatePatch[j];
472 }
473 }
474
475 } __attribute__((__packed__));
476
477
478 struct FtuResponse
479 {
480 uint16_t fPingAddr; // Number of Pings and addr (pings= see error)
481 uint64_t fDNA;
482 uint16_t fErrorCounter; //
483
484 void reverse() { Reverse(&fDNA); }
485
486 void print(std::ostream &out) const;
487
488 } __attribute__((__packed__));
489
490 struct FtuList
491 {
492 uint16_t fNumBoards; /// Total number of boards responded
493 uint16_t fNumBoardsCrate[4]; /// Num of board responded in crate 0-3
494 uint16_t fActiveFTU[4]; /// List of active FTU boards in crate 0-3
495
496 FtuResponse fFTU[4][10];
497
498 FtuList() { init(*this); }
499
500 std::vector<uint16_t> HtoN() const
501 {
502 FtuList d(*this);
503
504 for (int c=0; c<4; c++)
505 for (int b=0; b<10; b++)
506 d.fFTU[c][b].reverse();
507
508 return htoncpy(d);
509 }
510
511 void operator=(const std::vector<uint16_t> &vec)
512 {
513 ntohcpy(vec, *this);
514
515 for (int c=0; c<4; c++)
516 for (int b=0; b<10; b++)
517 fFTU[c][b].reverse();
518 }
519
520 void clear() { reset(*this); }
521 void print(std::ostream &out) const;
522
523 FtuResponse &operator[](int i) { return fFTU[i/10][i%10]; }
524 const FtuResponse &operator[](int i) const { return fFTU[i/10][i%10]; }
525
526 } __attribute__((__packed__));
527
528 struct DimFtuList
529 {
530 uint64_t fTimeStamp;
531 uint64_t fActiveFTU;
532
533 uint16_t fNumBoards; /// Number of boards answered in total
534 uint8_t fNumBoardsCrate[4]; /// Number of boards answered per crate
535
536 uint64_t fDNA[40]; /// DNA of FTU board
537 uint8_t fAddr[40]; /// Address of FTU board
538 uint8_t fPing[40]; /// Number of pings until response (same as in Error)
539
540 DimFtuList(const Header &h, const FtuList &d) :
541 fTimeStamp(h.fTimeStamp),
542 fActiveFTU( uint64_t(d.fActiveFTU[0]) |
543 (uint64_t(d.fActiveFTU[1])<<10) |
544 (uint64_t(d.fActiveFTU[2])<<20) |
545 (uint64_t(d.fActiveFTU[3])<<30)),
546 fNumBoards(d.fNumBoards)
547 {
548 for (int i=0; i<4; i++)
549 fNumBoardsCrate[i] = d.fNumBoardsCrate[i];
550
551 for (int i=0; i<40; i++)
552 {
553 fDNA[i] = d[i].fDNA;
554 fAddr[i] = d[i].fPingAddr&0x3f;
555 fPing[i] = (d[i].fPingAddr>>8)&0x3;
556 }
557 }
558
559 bool IsActive(int i) const { return fActiveFTU&(uint64_t(1)<<i); }
560
561 } __attribute__((__packed__));
562
563
564 struct Error
565 {
566 uint16_t fNumCalls; // 0=error, >1 needed repetition but successfull
567
568 uint16_t fDelimiter;
569 uint16_t fDestAddress;
570 uint16_t fSrcAddress;
571 uint16_t fFirmwareId;
572 uint16_t fCommand;
573 uint16_t fData[21];
574 uint16_t fCrcErrorCounter;
575 uint16_t fCrcCheckSum;
576
577 Error() { init(*this); }
578
579 std::vector<uint16_t> HtoN() const
580 {
581 return htoncpy(*this);
582 }
583
584 void operator=(const std::vector<uint16_t> &vec) { ntohcpy(vec, *this); }
585
586 void clear() { reset(*this); }
587
588 uint16_t &operator[](int idx) { return fData[idx]; }
589 const uint16_t &operator[](int idx) const { return fData[idx]; }
590
591 void print(std::ostream &out) const;
592
593 } __attribute__((__packed__));
594
595 struct DimError
596 {
597 uint64_t fTimeStamp;
598 Error fError;
599
600 DimError(const Header &h, const Error &e) :
601 fTimeStamp(h.fTimeStamp),
602 fError(e)
603 {
604 fError.fDestAddress = (e.fDestAddress&0x3)*10 + ((e.fDestAddress>>2)&0xf);
605 fError.fSrcAddress = (e.fSrcAddress &0x3)*10 + ((e.fSrcAddress >>2)&0xf);
606 }
607
608 } __attribute__((__packed__));
609
610 /*
611 struct Command
612 {
613 uint16_t fStartDelimiter;
614 uint16_t fCommand;
615 uint16_t fParam[3];
616
617 Command() { init(*this); }
618
619 void HtoN() { hton(*this); }
620 void NtoH() { ntoh(*this); }
621
622 void operator=(const std::vector<uint16_t> &vec) { ntohcpy(vec, *this); }
623
624 void clear() { reset(*this); }
625
626
627 } __attribute__((__packed__));
628 */
629
630 // --------------------------------------------------------------------
631
632 inline std::ostream &operator<<(std::ostream &out, const FtuResponse &h)
633 {
634 h.print(out);
635 return out;
636 }
637
638 inline std::ostream &operator<<(std::ostream &out, const Header &h)
639 {
640 h.print(out);
641 return out;
642 }
643
644
645 inline std::ostream &operator<<(std::ostream &out, const FtuList &h)
646 {
647 h.print(out);
648 return out;
649 }
650
651 inline std::ostream &operator<<(std::ostream &out, const DynamicDataBoard &h)
652 {
653 h.print(out);
654 return out;
655 }
656
657 inline std::ostream &operator<<(std::ostream &out, const DynamicData &h)
658 {
659 h.print(out);
660 return out;
661 }
662
663 inline std::ostream &operator<<(std::ostream &out, const StaticDataBoard &h)
664 {
665 h.print(out);
666 return out;
667 }
668
669 inline std::ostream &operator<<(std::ostream &out, const StaticData &h)
670 {
671 h.print(out);
672 return out;
673 }
674
675 inline std::ostream &operator<<(std::ostream &out, const Error &h)
676 {
677 h.print(out);
678 return out;
679 }
680};
681
682#endif
Note: See TracBrowser for help on using the repository browser.