Nuria Framework - Core
Core module of the NuriaProject Framework
Main Page
Modules
Classes
Files
File List
All
Classes
Functions
Typedefs
Enumerations
Enumerator
Groups
Framework
Core
argumentmanager.hpp
1
/* Copyright (c) 2014, The Nuria Project
2
* This software is provided 'as-is', without any express or implied
3
* warranty. In no event will the authors be held liable for any damages
4
* arising from the use of this software.
5
* Permission is granted to anyone to use this software for any purpose,
6
* including commercial applications, and to alter it and redistribute it
7
* freely, subject to the following restrictions:
8
* 1. The origin of this software must not be misrepresented; you must not
9
* claim that you wrote the original software. If you use this software
10
* in a product, an acknowledgment in the product documentation would be
11
* appreciated but is not required.
12
* 2. Altered source versions must be plainly marked as such, and must not be
13
* misrepresented as being the original software.
14
* 3. This notice may not be removed or altered from any source
15
* distribution.
16
*/
17
18
#ifndef NURIA_ARGUMENTMANAGER_HPP
19
#define NURIA_ARGUMENTMANAGER_HPP
20
21
#include <QObject>
22
#include <QMap>
23
24
#include "essentials.hpp"
25
#include <climits>
26
27
namespace
Nuria {
28
42
class
NURIA_CORE_EXPORT
ArgumentManager
:
public
QObject {
43
Q_OBJECT
44
public
:
45
46
~
ArgumentManager
();
47
52
static
QString getValue (
const
QString &path,
const
QString &defaultValue = QString ());
53
60
static
int
getInt (
const
QString &path,
int
defaultValue = 0,
61
int
min = INT_MIN,
int
max = INT_MAX,
bool
*ok = 0);
62
67
static
bool
contains (
const
QString &path);
68
69
private
:
70
ArgumentManager
(QObject *parent = 0);
71
72
};
73
}
74
75
#endif // NURIA_ARGUMENTMANAGER_HPP
Nuria::ArgumentManager
Provides convenient access to arguments passed to the launcher.
Definition:
argumentmanager.hpp:42
Generated on Sun Jun 29 2014 23:49:06 for Nuria Framework - Core by
1.8.7