libdom
Loading...
Searching...
No Matches
typeinfo.h File Reference
#include <stdbool.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>

Go to the source code of this file.

Macros

#define dom_type_info_get_type_name(t, r)
 
#define dom_type_info_get_type_namespace(t, r)
 
#define dom_type_info_is_derived(t, s, n, m, r)
 

Typedefs

typedef struct dom_type_info dom_type_info
 

Enumerations

enum  dom_type_info_derivation_method { DOM_TYPE_INFO_DERIVATION_RESTRICTION = 0x00000001 , DOM_TYPE_INFO_DERIVATION_EXTENSION = 0x00000002 , DOM_TYPE_INFO_DERIVATION_UNION = 0x00000004 , DOM_TYPE_INFO_DERIVATION_LIST = 0x00000008 }
 

Functions

dom_exception _dom_type_info_get_type_name (dom_type_info *ti, dom_string **ret)
 
dom_exception _dom_type_info_get_type_namespace (dom_type_info *ti, dom_string **ret)
 
dom_exception _dom_type_info_is_derived (dom_type_info *ti, dom_string *namespace, dom_string *name, dom_type_info_derivation_method method, bool *ret)
 

Macro Definition Documentation

◆ dom_type_info_get_type_name

#define dom_type_info_get_type_name ( t,
r )
Value:
(dom_type_info *) (t), (r))
Definition typeinfo.c:14
dom_exception _dom_type_info_get_type_name(dom_type_info *ti, dom_string **ret)
Definition typeinfo.c:29

◆ dom_type_info_get_type_namespace

#define dom_type_info_get_type_namespace ( t,
r )
Value:
dom_exception _dom_type_info_get_type_namespace(dom_type_info *ti, dom_string **ret)
Definition typeinfo.c:48

◆ dom_type_info_is_derived

#define dom_type_info_is_derived ( t,
s,
n,
m,
r )
Value:
(dom_type_info *) (t), (s), (n), \
(dom_type_info_derivation_method) (m), (bool *) (r))
dom_exception _dom_type_info_is_derived(dom_type_info *ti, dom_string *namespace, dom_string *name, dom_type_info_derivation_method method, bool *ret)
Definition typeinfo.c:69
dom_type_info_derivation_method
Definition typeinfo.h:18

Typedef Documentation

◆ dom_type_info

typedef struct dom_type_info dom_type_info

Enumeration Type Documentation

◆ dom_type_info_derivation_method

Enumerator
DOM_TYPE_INFO_DERIVATION_RESTRICTION 
DOM_TYPE_INFO_DERIVATION_EXTENSION 
DOM_TYPE_INFO_DERIVATION_UNION 
DOM_TYPE_INFO_DERIVATION_LIST 

Function Documentation

◆ _dom_type_info_get_type_name()

dom_exception _dom_type_info_get_type_name ( dom_type_info * ti,
dom_string ** ret )

Get the type name of this dom_type_info

Parameters
tiThe dom_type_info
retThe name
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

We don't support this API now, so this function call always return DOM_NOT_SUPPORTED_ERR.

◆ _dom_type_info_get_type_namespace()

dom_exception _dom_type_info_get_type_namespace ( dom_type_info * ti,
dom_string ** ret )

Get the namespace of this type info

Parameters
tiThe dom_type_info
retThe namespace
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

We don't support this API now, so this function call always return DOM_NOT_SUPPORTED_ERR.

◆ _dom_type_info_is_derived()

dom_exception _dom_type_info_is_derived ( dom_type_info * ti,
dom_string * namespace,
dom_string * name,
dom_type_info_derivation_method method,
bool * ret )

Whether this type info is derived from another one

Parameters
tiThe dom_type_info
namespaceThe namespace of name
nameThe name of the base typeinfo
methodThe deriving method
retThe return value
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

We don't support this API now, so this function call always return DOM_NOT_SUPPORTED_ERR.