C++/Tree Mapping Runtime Library
Public Member Functions | List of all members
not_derived< C > Class Template Reference

Exception indicating that the types are not related by inheritance. More...

#include <exceptions.hxx>

Inheritance diagram for not_derived< C >:
exception< C >

Public Member Functions

 not_derived (const std::basic_string< C > &base_type_name, const std::basic_string< C > &base_type_ns, const std::basic_string< C > &derived_type_name, const std::basic_string< C > &derived_type_ns)
 Initialize an instance with the type descriptions.
 
const std::basic_string< C > & base_type_name () const
 Get the base type name.
 
const std::basic_string< C > & base_type_namespace () const
 Get the base type namespace.
 
const std::basic_string< C > & derived_type_name () const
 Get the derived type name.
 
const std::basic_string< C > & derived_type_namespace () const
 Get the derived type namespace.
 
virtual const char * what () const throw ()
 Get exception description.
 

Detailed Description

template<typename C>
class xsd::cxx::tree::not_derived< C >

Exception indicating that the types are not related by inheritance.

Constructor & Destructor Documentation

◆ not_derived()

template<typename C >
not_derived ( const std::basic_string< C > &  base_type_name,
const std::basic_string< C > &  base_type_ns,
const std::basic_string< C > &  derived_type_name,
const std::basic_string< C > &  derived_type_ns 
)

Initialize an instance with the type descriptions.

Parameters
base_type_nameA name of the base type.
base_type_nsA namespace of the base type.
derived_type_nameA name of the derived type.
derived_type_nsA namespace of the derived type.

Member Function Documentation

◆ base_type_name()

template<typename C >
const std::basic_string< C > & base_type_name ( ) const
inline

Get the base type name.

Returns
The base type name.

◆ base_type_namespace()

template<typename C >
const std::basic_string< C > & base_type_namespace ( ) const
inline

Get the base type namespace.

Returns
The base type namespace.

◆ derived_type_name()

template<typename C >
const std::basic_string< C > & derived_type_name ( ) const
inline

Get the derived type name.

Returns
The derived type name.

◆ derived_type_namespace()

template<typename C >
const std::basic_string< C > & derived_type_namespace ( ) const
inline

Get the derived type namespace.

Returns
The derived type namespace.

◆ what()

template<typename C >
virtual const char * what ( ) const
throw (
)
virtual

Get exception description.

Returns
A C string describing the exception.

The documentation for this class was generated from the following file:

Copyright © 2005-2023 Code Synthesis.