|
@@ -172,6 +172,7 @@ extern "C" {
|
172
|
172
|
const cmJsonNode_t* cmJsonFindPathValueC( cmJsonH_t h, const char* path, const cmJsonNode_t* root, unsigned typeIdMask );
|
173
|
173
|
cmJsonNode_t* cmJsonFindPathValue( cmJsonH_t h, const char* path, const cmJsonNode_t* root, unsigned typeIdMask );
|
174
|
174
|
|
|
175
|
+
|
175
|
176
|
// Return the node value. If 'np' does not point to the same type as
|
176
|
177
|
// specified in '*retPtr' then the value is converted if possible.
|
177
|
178
|
// If the value cannot be converted function returns a 'kNodeCannotCvtJsRC'
|
|
@@ -187,10 +188,16 @@ extern "C" {
|
187
|
188
|
|
188
|
189
|
|
189
|
190
|
// Return the label from a pair object.
|
190
|
|
- const char* cmJsonPairLabel( const cmJsonNode_t* pairPtr );
|
191
|
|
- unsigned cmJsonPairTypeId( const cmJsonNode_t* pairPtr );
|
|
191
|
+ const char* cmJsonPairLabel( const cmJsonNode_t* pairPtr );
|
|
192
|
+ unsigned cmJsonPairTypeId( const cmJsonNode_t* pairPtr );
|
192
|
193
|
cmJsonNode_t* cmJsonPairValue( cmJsonNode_t* pairPtr );
|
193
|
194
|
|
|
195
|
+ // Return a labelled pair node from an object.
|
|
196
|
+ cmJsonNode_t* cmJsonFindPair( const cmJsonNode_t* objectNodePtr, const char* label );
|
|
197
|
+
|
|
198
|
+ // Return the type of a member value.
|
|
199
|
+ cmJsRC_t cmJsonMemberType( const cmJsonNode_t* objectNodePtr, const char* label, unsigned* typeIdRef );
|
|
200
|
+
|
194
|
201
|
// Return values associated with the member values in the object
|
195
|
202
|
// pointed to by object objectNodePtr.
|
196
|
203
|
cmJsRC_t cmJsonUIntMember( const cmJsonNode_t* objectNodePtr, const char* label, unsigned* retPtr );
|