XMLTriple.cpp File Reference

Detailed Description

Stores an XML namespace triple.

Author:
Ben Bornstein
Include dependency graph for XMLTriple.cpp:

Functions

bool operator!= (const XMLTriple &lhs, const XMLTriple &rhs)
bool operator== (const XMLTriple &lhs, const XMLTriple &rhs)
LIBLAX_EXTERN XMLTriple_t * XMLTriple_clone (const XMLTriple_t *t)
 Creates a deep copy of the given XMLTriple_t structure.
LIBLAX_EXTERN XMLTriple_t * XMLTriple_create (void)
 Creates a new empty XMLTriple_t structure and returns a pointer to it.
LIBLAX_EXTERN XMLTriple_t * XMLTriple_createWith (const char *name, const char *uri, const char *prefix)
 Creates a new XMLTriple_t structure with name, prefix and uri.
LIBLAX_EXTERN int XMLTriple_equalTo (const XMLTriple_t *lhs, const XMLTriple_t *rhs)
 Predicate returning true or false depending on whether this XMLTriple is equal to the given XMLTriple.
LIBLAX_EXTERN void XMLTriple_free (XMLTriple_t *triple)
 Destroys this XMLTriple_t structure.
LIBLAX_EXTERN const char * XMLTriple_getName (const XMLTriple_t *triple)
 Returns the name from this XMLTriple_t structure.
LIBLAX_EXTERN const char * XMLTriple_getPrefix (const XMLTriple_t *triple)
 Returns the prefix from this XMLTriple_t structure.
LIBLAX_EXTERN const char * XMLTriple_getPrefixedName (const XMLTriple_t *triple)
 Returns the prefixed name from this XMLTriple_t structure.
LIBLAX_EXTERN const char * XMLTriple_getURI (const XMLTriple_t *triple)
 Returns the URI from this XMLTriple_t structure.
LIBLAX_EXTERN int XMLTriple_isEmpty (const XMLTriple_t *triple)
 Predicate returning true or false depending on whether this XMLTriple is empty.
LIBLAX_EXTERN int XMLTriple_notEqualTo (const XMLTriple_t *lhs, const XMLTriple_t *rhs)
 Predicate returning true or false depending on whether this XMLTriple is not equal to the given XMLTriple.

Function Documentation

bool operator!= ( const XMLTriple &  lhs,
const XMLTriple &  rhs 
)
bool operator== ( const XMLTriple &  lhs,
const XMLTriple &  rhs 
)
LIBLAX_EXTERN XMLTriple_t* XMLTriple_clone ( const XMLTriple_t *  t)

Creates a deep copy of the given XMLTriple_t structure.

Parameters:
tthe XMLTriple_t structure to be copied
Returns:
a (deep) copy of the given XMLTriple_t structure.
LIBLAX_EXTERN XMLTriple_t* XMLTriple_create ( void  )

Creates a new empty XMLTriple_t structure and returns a pointer to it.

Returns:
pointer to created XMLTriple_t structure.
LIBLAX_EXTERN XMLTriple_t* XMLTriple_createWith ( const char *  name,
const char *  uri,
const char *  prefix 
)

Creates a new XMLTriple_t structure with name, prefix and uri.

Parameters:
namea string, name for the XMLTriple_t structure.
uria string, URI of the XMLTriple_t structure.
prefixa string, prefix for the URI of the XMLTriple_t structure.
Returns:
pointer to the created XMLTriple_t structure.
LIBLAX_EXTERN int XMLTriple_equalTo ( const XMLTriple_t *  lhs,
const XMLTriple_t *  rhs 
)

Predicate returning true or false depending on whether this XMLTriple is equal to the given XMLTriple.

Parameters:
lhsXMLTriple_t structure to be required.
rhsXMLTriple_t structure to be compared with this XMLTriple.
Returns:
non-zero (true) if the combination of name, URI, and prefix of this XMLTriple is equal to that of the given XMLTriple, zero (false) otherwise.
LIBLAX_EXTERN void XMLTriple_free ( XMLTriple_t *  triple)

Destroys this XMLTriple_t structure.

Parameters:
tripleXMLTriple_t structure to be freed.
LIBLAX_EXTERN const char* XMLTriple_getName ( const XMLTriple_t *  triple)

Returns the name from this XMLTriple_t structure.

Parameters:
tripleXMLTriple_t structure to be queried.
Returns:
name from this XMLTriple_t structure.
LIBLAX_EXTERN const char* XMLTriple_getPrefix ( const XMLTriple_t *  triple)

Returns the prefix from this XMLTriple_t structure.

Parameters:
tripleXMLTriple_t structure to be queried.
Returns:
prefix from this XMLTriple_t structure.
LIBLAX_EXTERN const char* XMLTriple_getPrefixedName ( const XMLTriple_t *  triple)

Returns the prefixed name from this XMLTriple_t structure.

Parameters:
tripleXMLTriple_t structure to be queried.
Returns:
prefixed name from this XMLTriple_t structure.
LIBLAX_EXTERN const char* XMLTriple_getURI ( const XMLTriple_t *  triple)

Returns the URI from this XMLTriple_t structure.

Parameters:
tripleXMLTriple_t structure to be queried.
Returns:
URI from this XMLTriple_t structure.
LIBLAX_EXTERN int XMLTriple_isEmpty ( const XMLTriple_t *  triple)

Predicate returning true or false depending on whether this XMLTriple is empty.

Parameters:
tripleXMLTriple_t structure to be queried.
Returns:
non-zero (true) if this XMLTriple is empty, zero (false) otherwise.
LIBLAX_EXTERN int XMLTriple_notEqualTo ( const XMLTriple_t *  lhs,
const XMLTriple_t *  rhs 
)

Predicate returning true or false depending on whether this XMLTriple is not equal to the given XMLTriple.

Parameters:
lhsXMLTriple_t structure to be required.
rhsXMLTriple_t structure to be compared with this XMLTriple.
Returns:
non-zero (true) if the combination of name, URI, and prefix of this XMLTriple is not equal to that of the given XMLTriple, zero (false) otherwise.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines