JULEA
Data Structures | Typedefs | Enumerations | Functions
Object URI

Data Structures

struct  JObjectURI
 

Typedefs

typedef enum JObjectURIScheme JObjectURIScheme
 
typedef struct JObjectURI JObjectURI
 

Enumerations

enum  JObjectURIScheme { J_OBJECT_URI_SCHEME_NAMESPACE , J_OBJECT_URI_SCHEME_OBJECT , J_OBJECT_URI_SCHEME_DISTRIBUTED_NAMESPACE , J_OBJECT_URI_SCHEME_DISTRIBUTED_OBJECT }
 

Functions

G_END_DECLS G_BEGIN_DECLS JObjectURIj_object_uri_new (gchar const *uri_, JObjectURIScheme scheme)
 
void j_object_uri_free (JObjectURI *uri)
 
guint32 j_object_uri_get_index (JObjectURI *uri)
 
gchar const * j_object_uri_get_namespace (JObjectURI *uri)
 
gchar const * j_object_uri_get_name (JObjectURI *uri)
 
JDistributedObjectj_object_uri_get_distributed_object (JObjectURI *uri)
 
JObjectj_object_uri_get_object (JObjectURI *uri)
 

Detailed Description

Typedef Documentation

◆ JObjectURI

typedef struct JObjectURI JObjectURI

◆ JObjectURIScheme

Enumeration Type Documentation

◆ JObjectURIScheme

Enumerator
J_OBJECT_URI_SCHEME_NAMESPACE 
J_OBJECT_URI_SCHEME_OBJECT 
J_OBJECT_URI_SCHEME_DISTRIBUTED_NAMESPACE 
J_OBJECT_URI_SCHEME_DISTRIBUTED_OBJECT 

Function Documentation

◆ j_object_uri_free()

void j_object_uri_free ( JObjectURI uri)

Frees the memory allocated by a URI.

...
j_object_uri_free(uri);
Definition: jobject-uri.c:43
Parameters
uriA URI.

◆ j_object_uri_get_distributed_object()

JDistributedObject * j_object_uri_get_distributed_object ( JObjectURI uri)

Returns the object.

...
g_print("%s\n", j_object_uri_get_object(uri));
JObject * j_object_uri_get_object(JObjectURI *uri)
Definition: jobject-uri.c:307
Parameters
uriA URI.
Returns
The object.

◆ j_object_uri_get_index()

guint32 j_object_uri_get_index ( JObjectURI uri)

Returns the index.

...
g_print("%s\n", j_object_uri_get_collection_name(uri));
Parameters
uriA URI.
Returns
The index.

◆ j_object_uri_get_name()

gchar const * j_object_uri_get_name ( JObjectURI uri)

Returns the name.

...
g_print("%s\n", j_object_uri_get_item_name(uri));
Parameters
uriA URI.
Returns
The name.

◆ j_object_uri_get_namespace()

gchar const * j_object_uri_get_namespace ( JObjectURI uri)

Returns the namespace.

...
g_print("%s\n", j_object_uri_get_collection_name(uri));
Parameters
uriA URI.
Returns
The namespace.

◆ j_object_uri_get_object()

JObject * j_object_uri_get_object ( JObjectURI uri)

Returns the object.

...
g_print("%s\n", j_object_uri_get_object(uri));
Parameters
uriA URI.
Returns
The object.

◆ j_object_uri_new()

JObjectURI * j_object_uri_new ( gchar const *  uri_,
JObjectURIScheme  scheme 
)

Creates a new URI.

uri = j_object_uri_new("julea://foo/bar");
G_END_DECLS G_BEGIN_DECLS JObjectURI * j_object_uri_new(gchar const *uri_, JObjectURIScheme scheme)
Definition: jobject-uri.c:218
Parameters
uri_A URI string.
schemeA JObjectURIScheme.
Returns
A new URI. Should be freed with j_object_uri_free().