ATLAS Offline Software
Loading...
Searching...
No Matches
RPCtrigDataObject.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef DATAOBJECT_H
6#define DATAOBJECT_H
7
8#include <sstream>
9#include <iosfwd>
10#include <string>
11
13
14
16{
17 private:
18 int m_number{};
19
20 public:
21 RPCtrigDataObject (int,const std::string&);
22 RPCtrigDataObject (int,const char*);
25 RPCtrigDataObject (RPCtrigDataObject&&) noexcept = default;
26 ~RPCtrigDataObject() = default;
27
28 void set_number (int);
29
30 int number() const {return m_number;}
31
32 void PrintElement(std::ostream&,std::string,bool) const {}
33
34 void Print(std::ostream&,bool) const;
35};
36
37
38template <class X> X& operator<<(X& stream,const RPCtrigDataObject& data)
39{
40 std::ostringstream display;
41 data.Print(display,false);
42 stream << display.str();
43 return stream;
44}
45
46#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
X & operator<<(X &stream, const RPCtrigDataObject &data)
BaseObject(ObjectType, const std::string &)
Definition BaseObject.cxx:7
void Print(std::ostream &, bool) const
RPCtrigDataObject(RPCtrigDataObject &&) noexcept=default
void PrintElement(std::ostream &, std::string, bool) const
RPCtrigDataObject(const RPCtrigDataObject &)=default
RPCtrigDataObject & operator=(const RPCtrigDataObject &)=default
RPCtrigDataObject(int, const std::string &)