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