|
Oolite
|
import "OOCocoa.h"import "OOStringParsing.h"import "OOCollectionExtractors.h"#include <limits.h>import "OOMaths.h"
Include dependency graph for OOCollectionExtractors.m:Go to the source code of this file.
Macros | |
| #define | PEEK() ((i >= count) ? -1 : [string characterAtIndex:i]) |
Functions | |
| static NSSet * | SetForObject (id object, NSSet *defaultValue) |
| static NSString * | StringForObject (id object, NSString *defaultValue) |
| long long | OOLongLongFromObject (id object, long long defaultValue) |
| unsigned long long | OOUnsignedLongLongFromObject (id object, unsigned long long defaultValue) |
| static BOOL | IsSpaceOrTab (int value) |
| static BOOL | IsZeroString (NSString *string) |
| static BOOL | BooleanFromString (NSString *string, BOOL defaultValue) |
| static float | FuzzyBooleanProbabilityFromString (NSString *string, float defaultValue) |
| BOOL | OOBooleanFromObject (id object, BOOL defaultValue) |
| BOOL | OOFuzzyBooleanFromObject (id object, float defaultValue) |
| float | OOFloatFromObject (id object, float defaultValue) |
| double | OODoubleFromObject (id object, double defaultValue) |
| float | OONonNegativeFloatFromObject (id object, float defaultValue) |
| double | OONonNegativeDoubleFromObject (id object, double defaultValue) |
| Vector | OOVectorFromObject (id object, Vector defaultValue) |
| HPVector | OOHPVectorFromObject (id object, HPVector defaultValue) |
| Quaternion | OOQuaternionFromObject (id object, Quaternion defaultValue) |
| NSDictionary * | OOPropertyListFromVector (Vector value) |
| NSDictionary * | OOPropertyListFromHPVector (HPVector value) |
| NSDictionary * | OOPropertyListFromQuaternion (Quaternion value) |
| #define PEEK | ( | ) | ((i >= count) ? -1 : [string characterAtIndex:i]) |
|
static |
Definition at line 1255 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by OOBooleanFromObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1276 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by OOFuzzyBooleanFromObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 1228 of file OOCollectionExtractors.m.
Referenced by IsZeroString().
Here is the caller graph for this function:
|
static |
Definition at line 1234 of file OOCollectionExtractors.m.
References count, IsSpaceOrTab(), and PEEK.
Referenced by BooleanFromString(), FuzzyBooleanProbabilityFromString(), OODoubleFromObject(), OOFloatFromObject(), and OOFuzzyBooleanFromObject().
Here is the call graph for this function:
Here is the caller graph for this function:| BOOL OOBooleanFromObject | ( | id | object, |
| BOOL | defaultValue | ||
| ) |
Definition at line 1297 of file OOCollectionExtractors.m.
References BooleanFromString().
Referenced by OOJSCallObjCObjectMethod(), Verify_Boolean(), and Verify_FuzzyBoolean().
Here is the call graph for this function:
Here is the caller graph for this function:| double OODoubleFromObject | ( | id | object, |
| double | defaultValue | ||
| ) |
Definition at line 1363 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by Verify_Float(), Verify_FuzzyBoolean(), and Verify_PositiveFloat().
Here is the call graph for this function:
Here is the caller graph for this function:| float OOFloatFromObject | ( | id | object, |
| float | defaultValue | ||
| ) |
Definition at line 1346 of file OOCollectionExtractors.m.
References IsZeroString().
Referenced by OOFuzzyBooleanFromObject().
Here is the call graph for this function:
Here is the caller graph for this function:| BOOL OOFuzzyBooleanFromObject | ( | id | object, |
| float | defaultValue | ||
| ) |
Definition at line 1317 of file OOCollectionExtractors.m.
References FuzzyBooleanProbabilityFromString(), IsZeroString(), OOFloatFromObject(), and randf().
Here is the call graph for this function:| HPVector OOHPVectorFromObject | ( | id | object, |
| HPVector | defaultValue | ||
| ) |
Definition at line 1445 of file OOCollectionExtractors.m.
References nil, and ScanHPVectorFromString().
Here is the call graph for this function:Definition at line 1201 of file OOCollectionExtractors.m.
Referenced by Verify_Integer().
Here is the caller graph for this function:| double OONonNegativeDoubleFromObject | ( | id | object, |
| double | defaultValue | ||
| ) |
Definition at line 1393 of file OOCollectionExtractors.m.
| float OONonNegativeFloatFromObject | ( | id | object, |
| float | defaultValue | ||
| ) |
Definition at line 1380 of file OOCollectionExtractors.m.
| NSDictionary * OOPropertyListFromHPVector | ( | HPVector | value | ) |
Definition at line 1527 of file OOCollectionExtractors.m.
| NSDictionary * OOPropertyListFromQuaternion | ( | Quaternion | value | ) |
Definition at line 1537 of file OOCollectionExtractors.m.
| NSDictionary * OOPropertyListFromVector | ( | Vector | value | ) |
Definition at line 1518 of file OOCollectionExtractors.m.
| Quaternion OOQuaternionFromObject | ( | id | object, |
| Quaternion | defaultValue | ||
| ) |
Definition at line 1480 of file OOCollectionExtractors.m.
References nil, and ScanQuaternionFromString().
Referenced by Verify_Quaternion().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1214 of file OOCollectionExtractors.m.
Referenced by PlayerEntity(LoadSave)::addScenarioModel:, and Verify_PositiveInteger().
Here is the caller graph for this function:| Vector OOVectorFromObject | ( | id | object, |
| Vector | defaultValue | ||
| ) |
Definition at line 1407 of file OOCollectionExtractors.m.
References nil, and ScanVectorFromString().
Referenced by Verify_Vector().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1549 of file OOCollectionExtractors.m.
|
static |
Definition at line 1558 of file OOCollectionExtractors.m.