Build on windows
authorandre Ebersold <andre.ebersold@free.fr>
Sat, 25 Feb 2023 20:23:20 +0000 (21:23 +0100)
committerandre Ebersold <andre.ebersold@free.fr>
Sat, 25 Feb 2023 20:23:20 +0000 (21:23 +0100)
src/xml/CMakeLists.txt
src/xml/reqif/reqif_element.h

index abbe98bdc677246f91bb594caed5a57020c7e609..cc1160a68b6efcdc889687215d7e8c19559e636f 100644 (file)
@@ -1,5 +1,6 @@
 PROJECT(antxml)
 cmake_minimum_required(VERSION 2.8)
 
+INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")
 SUBDIRS(parser reqif)
 
index 14d3c3d358c2ddd4d627293f0274e70226f06bf6..2be682157a2b1bdabf8e766ba23e47196d3a2017 100644 (file)
@@ -18,74 +18,6 @@ namespace reqif {
   class  project;
   struct Location;
 
-#if 0
-namespace xml {
-
-    template <typename T>
-    struct element_traits {
-        typedef T                               element_type;
-#ifdef XSD_WITH_BOOST
-        typedef typename boost::shared_ptr<element_type> element_sptr;
-#elif defined(XSD_WITH_AEB)
-        typedef typename aeb::shared_ptr<element_type> element_sptr;
-#else
-        typedef typename std::shared_ptr<element_type> element_sptr;
-#endif
-        typedef typename std::vector<element_sptr>       element_sequence;
-    };
-    /// Usefulle template to create a static 
-    // array of all avaialable attributes for an element
-    template <typename T>
-    struct element_attributes {
-       const char *m_Name;
-       void (T::*m_Setter)(const std::string &_v);
-    };     
-
-    template <typename T,bool ns>
-    struct element {
-        typedef typename element_traits<T>::element_type t_type;
-        typedef typename element_traits<T>::element_sptr t_sptr;
-        public:
-    };
-
-    template <typename T>
-    struct element<T,true > {
-        typedef typename element_traits<T>::element_type t_type;
-        typedef typename element_traits<T>::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<<"<:"<<e.m_name;
-            e.m_content->serialize_attributes(os);
-            os<<">";
-            os<<*(e.m_content);
-            os<<"</:"<<e.m_name<<">";
-           return os;
-        };
-        t_sptr    m_content;
-        const char *m_name;
-    };
-    
-    template <typename T>
-    struct element<T,false> {
-        typedef typename element_traits<T>::element_type t_type;
-        typedef typename element_traits<T>::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<<"<"<<e.m_name;
-            e.m_content->serialize_attributes(os);
-            os<<">";
-            os<<*(e.m_content);
-            os<<"<"<<e.m_name<<">";
-           return os;
-        };
-        t_sptr  m_content;
-        const   char *m_name;
-    };
-
-  } // end  xml ns
-#endif
     // Ok, lets define ant_element
     struct  Element
     {