diff options
author | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
---|---|---|
committer | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
commit | 47b676670dc9373bc77af80388e0b51e36134738 (patch) | |
tree | aacce0809279e1d142e7b196a84ff10dfbdae4d0 /CIAO/tools/Config_Handlers/XSCRT/Parser.hpp | |
parent | 3dd4e2fe6c64de3a9db04757eade78d764b578f1 (diff) | |
download | ATCD-GH5_0port.tar.gz |
Added the ACE and TAO for this branchGH5_0port
Diffstat (limited to 'CIAO/tools/Config_Handlers/XSCRT/Parser.hpp')
-rw-r--r-- | CIAO/tools/Config_Handlers/XSCRT/Parser.hpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp b/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp deleted file mode 100644 index 5fa1e827f8d..00000000000 --- a/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp +++ /dev/null @@ -1,67 +0,0 @@ -// file : XSCRT/Parser.hpp -// author : Boris Kolpackov <boris@dre.vanderbilt.edu> -// cvs-id : $Id$ - -#ifndef XSCRT_PARSER_HPP -#define XSCRT_PARSER_HPP - -#include <string> - -#include "XSCRT/XML.hpp" - -namespace XSCRT -{ - template <typename C> - class Parser - { - public: - Parser (XML::Element<C> const& e) - : e_ (e.dom_element ()->getChildNodes ()), ei_ (0), - a_ (e.dom_element ()->getAttributes ()), ai_ (0) - { - } - - bool - more_elements () const - { - return e_->getLength () > ei_; - } - - XML::Element<C> - next_element () - { - return XML::Element<C> (XML::dom_cast <xercesc::DOMElement*> (e_->item (ei_++))); - } - - bool - more_attributes () const - { - return a_->getLength () > ai_; - } - - XML::Attribute<C> - next_attribute () - { - return XML::Attribute<C> ( - XML::dom_cast <xercesc::DOMAttr*> (a_->item (ai_++))); - } - - private: - xercesc::DOMNodeList const* e_; - unsigned long ei_; - - xercesc::DOMNamedNodeMap const* a_; - unsigned long ai_; - - private: - Parser (Parser const&); - - void - operator= (Parser const&); - }; -} - -#include "XSCRT/Parser.ipp" -#include "XSCRT/Parser.tpp" - -#endif // XSCRT_PARSER_HPP |