PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
smbx64.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2014-2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef SMBX64_H
20 #define SMBX64_H
21 
22 #include "pge_file_lib_globs.h"
23 
24 //SMBX64 standard data
25 #ifdef PGE_FILES_QT
26 class SMBX64 : public QObject
27 {
28  Q_OBJECT
29 #else
30 class SMBX64
31 {
32 #endif
33 
34 public:
35  inline SMBX64() {}
36 
37  // /////////////Validators///////////////
38  //returns TRUE on wrong data
39  static bool uInt(PGESTRING in); // UNSIGNED INT
40  static bool sInt(PGESTRING in); // SIGNED INT
41  static bool sFloat(PGESTRING &in); // SIGNED FLOAT
42  static bool qStr(PGESTRING in); // QUOTED STRING
43  static bool wBool(PGESTRING in); //Worded BOOL
44  static bool dBool(PGESTRING in); //Worded BOOL
45 
46  //Convert from string to internal data
47  static bool wBoolR(PGESTRING in);
48  //Convert from SMBX64 string to internal
49  static PGESTRING StrToStr(PGESTRING in);
50 
51  //SMBX64 parameter string generators
52  static PGESTRING IntS(long input);
53  static PGESTRING BoolS(bool input);
54  static PGESTRING qStrS(PGESTRING input);
55  static PGESTRING FloatS(float input);
56  static PGESTRING qStrS_multiline(PGESTRING input);
57 };
58 
59 
60 #endif // SMBX64_H
61 
#define PGESTRING
A macro which equal to std::string if PGE File Library built in the STL mode and equal to QString if ...
Definition: pge_file_lib_globs.h:97
Definition: smbx64.h:30
Contains internal settings and references for PGE File Library.