libdom
Loading...
Searching...
No Matches
typeinfo.c File Reference
#include <dom/core/typeinfo.h>
#include <dom/core/string.h>
#include "utils/utils.h"

Classes

struct  dom_type_info
 

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)
 

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.