Orxonox  0.0.5 Codename: Arcturus
ConfigFileEntry.h
Go to the documentation of this file.
1 /*
2  * ORXONOX - the hottest 3D action shooter ever to exist
3  * > www.orxonox.net <
4  *
5  *
6  * License notice:
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * Author:
23  * Fabian 'x3n' Landau
24  * Co-authors:
25  * ...
26  *
27  */
28 
34 #ifndef _ConfigFileEntry_H__
35 #define _ConfigFileEntry_H__
36 
37 #include "core/CorePrereqs.h"
38 
39 namespace orxonox
40 {
42  // ConfigFileEntry //
44 
50  {
51  public:
53  virtual ~ConfigFileEntry() = default;
54 
56  virtual void setValue(const std::string& value) = 0;
58  virtual const std::string& getValue() const = 0;
59 
61  virtual const std::string& getName() const = 0;
62 
64  virtual void setComment(const std::string& comment) = 0;
65 
67  virtual unsigned int getIndex() const { return 0; }
68 
70  virtual void setString(bool bString) = 0;
71 
73  virtual const std::string& getFileEntry() const = 0;
74  };
75 }
76 
77 #endif /* _ConfigFileEntry_H__ */
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
virtual unsigned int getIndex() const
Returns the index of the entry in a vector (used only if it is a vector)
Definition: ConfigFileEntry.h:67
This class represents an entry in the config file.
Definition: ConfigFileEntry.h:49