00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __SLV2_VALUE_H__
00020 #define __SLV2_VALUE_H__
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026 #include <stdbool.h>
00027 #include <slv2/types.h>
00028
00038 SLV2Value
00039 slv2_value_new_uri(SLV2World world, const char* uri);
00040
00041
00044 void
00045 slv2_value_free(SLV2Value val);
00046
00047
00050 SLV2Value
00051 slv2_value_duplicate(SLV2Value val);
00052
00053
00056 bool
00057 slv2_value_equals(SLV2Value value, SLV2Value other);
00058
00059
00070 char*
00071 slv2_value_get_turtle_token(SLV2Value value);
00072
00073
00078 bool
00079 slv2_value_is_uri(SLV2Value value);
00080
00081
00089 const char*
00090 slv2_value_as_uri(SLV2Value value);
00091
00092
00093 #if 0
00094
00101 bool
00102 slv2_value_is_qname(SLV2Value value);
00103
00104
00112 const char*
00113 slv2_value_as_qname(SLV2Value value);
00114 #endif
00115
00116
00123 bool
00124 slv2_value_is_literal(SLV2Value value);
00125
00126
00133 bool
00134 slv2_value_is_string(SLV2Value value);
00135
00136
00141 const char*
00142 slv2_value_as_string(SLV2Value value);
00143
00144
00149 bool
00150 slv2_value_is_float(SLV2Value value);
00151
00152
00160 float
00161 slv2_value_as_float(SLV2Value value);
00162
00163
00168 bool
00169 slv2_value_is_int(SLV2Value value);
00170
00171
00178 int
00179 slv2_value_as_int(SLV2Value value);
00180
00181
00184 #ifdef __cplusplus
00185 }
00186 #endif
00187
00188 #endif