LCOV - code coverage report
Current view: top level - /usr/include/xsd/cxx/xml - qualified-name.hxx (source / functions) Coverage Total Hit
Test: mu2edaq.info.cleaned Lines: 0.0 % 10 0
Test Date: 2026-07-30 01:56:44 Functions: 0.0 % 4 0

            Line data    Source code
       1              : // file      : xsd/cxx/xml/qualified-name.hxx
       2              : // copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC
       3              : // license   : GNU GPL v2 + exceptions; see accompanying LICENSE file
       4              : 
       5              : #ifndef XSD_CXX_XML_QUALIFIED_NAME_HXX
       6              : #define XSD_CXX_XML_QUALIFIED_NAME_HXX
       7              : 
       8              : #include <string>
       9              : 
      10              : namespace xsd
      11              : {
      12              :   namespace cxx
      13              :   {
      14              :     namespace xml
      15              :     {
      16              :       template <typename C>
      17              :       struct qualified_name
      18              :       {
      19              :         qualified_name (const C* name,
      20              :                         const C* namespace_)
      21              :             : name_ (name), namespace__ (namespace_)
      22              :         {
      23              :         }
      24              : 
      25            0 :         qualified_name (const std::basic_string<C>& name,
      26              :                         const std::basic_string<C>& namespace_)
      27            0 :             : name_ (name), namespace__ (namespace_)
      28              :         {
      29            0 :         }
      30              : 
      31              :         qualified_name (const C* name)
      32              :             : name_ (name)
      33              :         {
      34              :         }
      35              : 
      36            0 :         qualified_name (const std::basic_string<C>& name)
      37            0 :             : name_ (name)
      38              :         {
      39            0 :         }
      40              : 
      41              :         const std::basic_string<C>&
      42            0 :         name () const
      43              :         {
      44            0 :           return name_;
      45              :         }
      46              : 
      47              :         const std::basic_string<C>&
      48            0 :         namespace_ () const
      49              :         {
      50            0 :           return namespace__;
      51              :         }
      52              : 
      53              :       private:
      54              :         std::basic_string<C> name_;
      55              :         std::basic_string<C> namespace__;
      56              :       };
      57              : 
      58              :       template <typename C>
      59              :       inline bool
      60              :       operator== (const qualified_name<C>& x, const qualified_name<C>& y)
      61              :       {
      62              :         return x.name () == y.name () && x.namespace_ () == y.namespace_ ();
      63              :       }
      64              : 
      65              :       template <typename C>
      66              :       inline bool
      67              :       operator!= (const qualified_name<C>& x, const qualified_name<C>& y)
      68              :       {
      69              :         return !(x == y);
      70              :       }
      71              : 
      72              :       template <typename C>
      73              :       inline bool
      74              :       operator< (const qualified_name<C>& x, const qualified_name<C>& y)
      75              :       {
      76              :         int r (x.name ().compare (y.name ()));
      77              :         return (r < 0) || (r == 0 && x.namespace_ () < y.namespace_ ());
      78              :       }
      79              :     }
      80              :   }
      81              : }
      82              : 
      83              : #endif // XSD_CXX_XML_QUALIFIED_NAME_HXX
        

Generated by: LCOV version 2.0-1