aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/samplenamespace.h
blob: 2c65aeab07ad9c6cbc2f269347a7819aed020d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SAMPLENAMESPACE_H
#define SAMPLENAMESPACE_H

namespace SampleNamespace
{

enum Option {
    None,
    RandomNumber,
    UnixTime
};

enum InValue {
    ZeroIn,
    OneIn,
    TwoIn
};

enum OutValue {
    ZeroOut,
    OneOut,
    TwoOut
};

OutValue enumInEnumOut(InValue in);

int getNumber(Option opt);

inline double powerOfTwo(double num) {
    return num * num;
}

} // namespace SampleNamespace

#endif // SAMPLENAMESPACE_H