1*dd15db95SIngo Weinhold /* 2*dd15db95SIngo Weinhold * Copyright 2014, Ingo Weinhold, ingo_weinhold@gmx.de. 3*dd15db95SIngo Weinhold * All Rights Reserved. Distributed under the terms of the MIT License. 4*dd15db95SIngo Weinhold */ 5*dd15db95SIngo Weinhold #ifndef COMMON_OPTIONS_H 6*dd15db95SIngo Weinhold #define COMMON_OPTIONS_H 7*dd15db95SIngo Weinhold 8*dd15db95SIngo Weinhold 9*dd15db95SIngo Weinhold #include <SupportDefs.h> 10*dd15db95SIngo Weinhold 11*dd15db95SIngo Weinhold 12*dd15db95SIngo Weinhold // common options 13*dd15db95SIngo Weinhold enum { 14*dd15db95SIngo Weinhold OPTION_DEBUG = 256, 15*dd15db95SIngo Weinhold }; 16*dd15db95SIngo Weinhold 17*dd15db95SIngo Weinhold 18*dd15db95SIngo Weinhold class CommonOptions { 19*dd15db95SIngo Weinhold public: 20*dd15db95SIngo Weinhold CommonOptions(); 21*dd15db95SIngo Weinhold ~CommonOptions(); 22*dd15db95SIngo Weinhold DebugLevel()23*dd15db95SIngo Weinhold int32 DebugLevel() const 24*dd15db95SIngo Weinhold { return fDebugLevel; } SetDebugLevel(int level)25*dd15db95SIngo Weinhold void SetDebugLevel(int level) 26*dd15db95SIngo Weinhold { fDebugLevel = level; } 27*dd15db95SIngo Weinhold 28*dd15db95SIngo Weinhold bool HandleOption(int option); 29*dd15db95SIngo Weinhold 30*dd15db95SIngo Weinhold private: 31*dd15db95SIngo Weinhold int32 fDebugLevel; 32*dd15db95SIngo Weinhold }; 33*dd15db95SIngo Weinhold 34*dd15db95SIngo Weinhold 35*dd15db95SIngo Weinhold #endif // COMMON_OPTIONS_H 36