From 79b5989867fdb832983465d338ebc73f6956c7f0 Mon Sep 17 00:00:00 2001 From: andre Ebersold Date: Sat, 25 Feb 2023 21:23:20 +0100 Subject: [PATCH] Build on windows --- src/xml/CMakeLists.txt | 1 + src/xml/reqif/reqif_element.h | 68 ----------------------------------- 2 files changed, 1 insertion(+), 68 deletions(-) diff --git a/src/xml/CMakeLists.txt b/src/xml/CMakeLists.txt index abbe98b..cc1160a 100644 --- a/src/xml/CMakeLists.txt +++ b/src/xml/CMakeLists.txt @@ -1,5 +1,6 @@ PROJECT(antxml) cmake_minimum_required(VERSION 2.8) +INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}") SUBDIRS(parser reqif) diff --git a/src/xml/reqif/reqif_element.h b/src/xml/reqif/reqif_element.h index 14d3c3d..2be6821 100644 --- a/src/xml/reqif/reqif_element.h +++ b/src/xml/reqif/reqif_element.h @@ -18,74 +18,6 @@ namespace reqif { class project; struct Location; -#if 0 -namespace xml { - - template - struct element_traits { - typedef T element_type; -#ifdef XSD_WITH_BOOST - typedef typename boost::shared_ptr element_sptr; -#elif defined(XSD_WITH_AEB) - typedef typename aeb::shared_ptr element_sptr; -#else - typedef typename std::shared_ptr element_sptr; -#endif - typedef typename std::vector element_sequence; - }; - /// Usefulle template to create a static - // array of all avaialable attributes for an element - template - struct element_attributes { - const char *m_Name; - void (T::*m_Setter)(const std::string &_v); - }; - - template - struct element { - typedef typename element_traits::element_type t_type; - typedef typename element_traits::element_sptr t_sptr; - public: - }; - - template - struct element { - typedef typename element_traits::element_type t_type; - typedef typename element_traits::element_sptr t_sptr; - element(const t_sptr &s,const char *n) : m_content(s) ,m_name(n){}; - friend std::ostream & operator <<(std::ostream &os,const element &e) - { - os<<"<:"<serialize_attributes(os); - os<<">"; - os<<*(e.m_content); - os<<""; - return os; - }; - t_sptr m_content; - const char *m_name; - }; - - template - struct element { - typedef typename element_traits::element_type t_type; - typedef typename element_traits::element_sptr t_sptr; - element(const t_sptr &s,const char *n) : m_content(s) ,m_name(n){}; - friend std::ostream & operator <<(std::ostream &os,const element &e) - { - os<<"<"<serialize_attributes(os); - os<<">"; - os<<*(e.m_content); - os<<"<"<"; - return os; - }; - t_sptr m_content; - const char *m_name; - }; - - } // end xml ns -#endif // Ok, lets define ant_element struct Element { -- 2.30.2