Changeset 650 for cpp/frams/param/param.h
- Timestamp:
- 02/02/17 15:14:19 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.h
r645 r650 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2017 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 118 118 ExtValue getById(const char* prop); 119 119 120 int setInt(int i, const char* str, bool strict =false);120 int setInt(int i, const char* str, bool strict = false); 121 121 int setDouble(int i, const char* str); 122 122 virtual int setInt(int, paInt) = 0; ///< set long value, you can only use this for "d" type prop … … 128 128 int set(int, const ExtValue &);///< most universal set, can be used for every datatype 129 129 130 int set(int, const char*, bool strict =false); ///< oldstyle set, can convert string to long or double130 int set(int, const char*, bool strict = false); ///< oldstyle set, can convert string to long or double 131 131 132 132 int setIntById(const char* prop, paInt);///< set long value, you can only use this for "d" type prop … … 157 157 /** return the human readable description of the given type */ 158 158 static SString describeType(const char* type); 159 SString describeType(int i) { return describeType(type(i));}160 159 SString describeType(int i) { return describeType(type(i)); } 160 161 161 /** copy all property values from other ParamInterface object */ 162 162 void copyFrom(ParamInterface *src); … … 176 176 177 177 static const char* SERIALIZATION_PREFIX; 178 static const int LOAD2_PARSE_FAILED =(1<<30); ///< this bit is set in return value from load2 if a parse error was detected while loading. usage: if (load2(...) & LOAD2_PARSE_FAILED) ...179 static const int LOAD2_IGNORE_PARSE_FAILED =(~LOAD2_PARSE_FAILED); ///< bitmask to be used if the parsing error is to be ignored. usage: int number_of_loaded_fields=load2(...) & LOAD2_IGNORE_PARSE_FAILED;178 static const int LOAD2_PARSE_FAILED = (1 << 30); ///< this bit is set in return value from load2 if a parse error was detected while loading. usage: if (load2(...) & LOAD2_PARSE_FAILED) ... 179 static const int LOAD2_IGNORE_PARSE_FAILED = (~LOAD2_PARSE_FAILED); ///< bitmask to be used if the parsing error is to be ignored. usage: int number_of_loaded_fields=load2(...) & LOAD2_IGNORE_PARSE_FAILED; 180 180 181 181 static bool isValidTypeDescription(const char* t);
Note: See TracChangeset
for help on using the changeset viewer.