ATLAS Offline Software
Loading...
Searching...
No Matches
FooBar.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TOYCONVERSION_FOOBAR_H
6#define TOYCONVERSION_FOOBAR_H
7
9class Foo{
10private:
11 double m_a;
12public:
13 Foo(): m_a(0.0) {
14 // std::cout << "Foo() called @" << this <<std::endl;
15 }
16 Foo(double a): m_a(a) {
17 // std::cout << "Foo() called @" << this << std::endl;
18 }
19 ~Foo() {
20 // std::cout << "~Foo() called @" << this << std::endl;
21 }
22 void setA(double a) { m_a=a; }
23 double a() const { return m_a; }
24 void doNothing() const {};
25};
26CLASS_DEF( Foo, 8101, 0)
27struct Bar{
28 void doNothing() const {};
29};
30CLASS_DEF( Bar, 8107, 0)
31
32#endif // TOYCONVERSION_FOOBAR_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition FooBar.h:9
double m_a
Definition FooBar.h:11
void doNothing() const
Definition FooBar.h:24
double a() const
Definition FooBar.h:23
Foo()
Definition FooBar.h:13
~Foo()
Definition FooBar.h:19
Foo(double a)
Definition FooBar.h:16
void setA(double a)
Definition FooBar.h:22
Definition FooBar.h:27
void doNothing() const
Definition FooBar.h:28