From 424e315dfa9a78aebf0653c95f83fe6ed452dd8e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 2 May 2017 21:26:58 +0300 Subject: Add hxx extension for headers and libstud prefix for library dir --- xml/qname | 86 --------------------------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 xml/qname (limited to 'xml/qname') diff --git a/xml/qname b/xml/qname deleted file mode 100644 index e49eb29..0000000 --- a/xml/qname +++ /dev/null @@ -1,86 +0,0 @@ -// file : xml/qname -*- C++ -*- -// copyright : Copyright (c) 2013-2017 Code Synthesis Tools CC -// license : MIT; see accompanying LICENSE file - -#ifndef XML_QNAME -#define XML_QNAME - -#include - -#include -#include - -#include - -#include - -namespace xml -{ - // Note that the optional prefix is just a "syntactic sugar". In - // particular, it is ignored by the comparison operators and the - // std::ostream insertion operator. - // - class LIBSTUDXML_EXPORT qname - { - public: - qname () {} - qname (const std::string& name): name_ (name) {} - qname (const std::string& ns, const std::string& name) - : ns_ (ns), name_ (name) {} - qname (const std::string& ns, - const std::string& name, - const std::string& prefix) - : ns_ (ns), name_ (name), prefix_ (prefix) {} - - const std::string& namespace_ () const {return ns_;} - const std::string& name () const {return name_;} - const std::string& prefix () const {return prefix_;} - - std::string& namespace_ () {return ns_;} - std::string& name () {return name_;} - std::string& prefix () {return prefix_;} - - bool - empty () const {return name_.empty () && ns_.empty ();} - - // String representation in the [#] form. - // - std::string - string () const; - - // Note that comparison operators ignore prefixes. - // - public: - friend bool - operator< (const qname& x, const qname& y) - { - return x.ns_ < y.ns_ || (x.ns_ == y.ns_ && x.name_ < y.name_); - } - - friend bool - operator== (const qname& x, const qname& y) - { - return x.ns_ == y.ns_ && x.name_ == y.name_; - } - - friend bool - operator!= (const qname& x, const qname& y) - { - return !(x == y); - } - - private: - std::string ns_; - std::string name_; - std::string prefix_; - }; - - // Print the string representation ([#]). - // - LIBSTUDXML_EXPORT std::ostream& - operator<< (std::ostream&, const qname&); -} - -#include - -#endif // XML_QNAME -- cgit v1.1