Odamex
Setting the Standard in Multiplayer Doom
ag-odalaunch/src/gui_config.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*- 
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: gui_config.h 2164 2011-05-07 20:10:55Z hypereye $
00005 //
00006 // Copyright (C) 2006-2010 by The Odamex Team.
00007 //
00008 // This program is free software; you can redistribute it and/or
00009 // modify it under the terms of the GNU General Public License
00010 // as published by the Free Software Foundation; either version 2
00011 // of the License, or (at your option) any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // DESCRIPTION:
00019 //      Gui Configuration
00020 //
00021 // AUTHORS:
00022 //       Michael Wood (mwoodj at huntsvegas dot org)
00023 //
00024 //-----------------------------------------------------------------------------
00025 
00026 #include "typedefs.h"
00027 
00028 #ifndef _GUI_CONFIG_H
00029 #define _GUI_CONFIG_H
00030 
00037 namespace agOdalaunch {
00038 
00039 #ifdef _WIN32
00040 const char PATH_DELIMITER = ';';
00041 #else
00042 const char PATH_DELIMITER = ':';
00043 #endif
00044 
00045 class GuiConfig
00046 {
00047 public:
00048         GuiConfig();
00049         ~GuiConfig();
00050 
00051         static int Save();
00052 
00053         static void Unset(const std::string &option);
00054 
00055         static int Write(const std::string &option, const std::string &value);
00056         static int Write(const std::string &option, const int8_t &value);
00057         static int Write(const std::string &option, const int16_t &value);
00058         static int Write(const std::string &option, const int32_t &value);
00059         static int Write(const std::string &option, const uint8_t &value);
00060         static int Write(const std::string &option, const uint16_t &value);
00061         static int Write(const std::string &option, const uint32_t &value);
00062         static int Write(const std::string &option, const float &value);
00063         static int Write(const std::string &option, const double &value);
00064 
00065         static int Read(const std::string &option, std::string &value);
00066         static int Read(const std::string &option, int8_t &value);
00067         static int Read(const std::string &option, int16_t &value);
00068         static int Read(const std::string &option, int32_t &value);
00069         static int Read(const std::string &option, uint8_t &value);
00070         static int Read(const std::string &option, uint16_t &value);
00071         static int Read(const std::string &option, uint32_t &value);
00072         static int Read(const std::string &option, float &value);
00073         static int Read(const std::string &option, double &value);
00074 };
00075 
00076 } // namespace
00077 
00078 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends