Changeset 216
- Timestamp:
- 06/15/11 14:03:15 (12 years ago)
- Location:
- XMLIO_V2/dev/dev_rv
- Files:
-
- 3 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/Doxyfile
r215 r216 52 52 # where doxygen was started. If left blank the current directory will be used. 53 53 54 OUTPUT_DIRECTORY = /home/herve/dev/dev_rv/wk/doc54 OUTPUT_DIRECTORY = wk/doc 55 55 56 56 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create … … 620 620 # with spaces. 621 621 622 INPUT = /home/herve/dev/dev_rv/src4/xmlio622 INPUT = src4/xmlio 623 623 624 624 # This tag can be used to specify the character encoding of the source files -
XMLIO_V2/dev/dev_rv/Makefile.wk
r215 r216 16 16 GUI = no 17 17 NPROC = 6 18 VERSION = 418 #VERSION = 4 19 19 CSUITE = intel 20 20 PFORME = fedora-wk … … 267 267 268 268 INCLUDE += -I $(INC_PATH) 269 DEFINE += -D XIOS_LIBRARY269 DEFINE += -D __XIOS_LIBRARY 270 270 271 271 LIBS += -lstdc++ … … 278 278 NODEPS = clean clean-all dir-tree 279 279 280 FFLAGS += -D XIOS_LIBRARY280 FFLAGS += -D __XIOS_LIBRARY 281 281 CFLAGS += $(DEFINE) $(INCLUDE) 282 282 LDFLAGS += $(LIBS_PATH) $(LIBS) … … 390 390 391 391 ifeq ($(VERSION), 4) 392 ELEMS_CPP = object exception 392 ELEMS_CPP = object exception xml_node xml_parser 393 393 endif 394 394 … … 544 544 545 545 $(DEP_PATH)/%.d: %.cpp $(DEP_PATH)/mark 546 $(CDEP) $(DEFLAGS) -D XIOS_NO_EXTERN -MT $(OBJ_PATH)/$(patsubst %.d,%.o,$(@F)) -MM -MF $@ $<546 $(CDEP) $(DEFLAGS) -D __XIOS_NO_EXTERN -MT $(OBJ_PATH)/$(patsubst %.d,%.o,$(@F)) -MM -MF $@ $< 547 547 548 548 # Entêtes cpp -
XMLIO_V2/dev/dev_rv/src4/xmlio/exception.cpp
r215 r216 11 11 */ 12 12 13 #ifndef __XIOS_NO_EXTERN 14 15 // Boost headers 16 #include <boost/cast.hpp> 17 18 #endif // __XIOS_NO_EXTERN 19 13 20 // XMLIOServer headers 14 21 #include "xmlioserver_spl.hpp" 15 22 #include "exception.hpp" 16 17 // Boost headers18 #include <boost/cast.hpp>19 23 20 24 // /////////////////////////////// Définitions ////////////////////////////// // -
XMLIO_V2/dev/dev_rv/src4/xmlio/exception.hpp
r215 r216 6 6 #define __EXCEPTION_HPP__ 7 7 8 #ifndef __XIOS_NO_EXTERN 9 10 // C++ standard headers 11 # include <sstream> 12 13 #endif // __XIOS_NO_EXTERN 14 8 15 // XMLIOServer headers 9 16 #include "object.hpp" 10 17 11 // C++ standard headers12 #include <sstream>13 18 14 19 /** -
XMLIO_V2/dev/dev_rv/src4/xmlio/object.cpp
r215 r216 11 11 */ 12 12 13 #ifndef __XIOS_NO_EXTERN 14 15 // Boost headers 16 #include <boost/none.hpp> 17 18 #endif // __XIOS_NO_EXTERN 19 13 20 // XMLIOServer headers 14 21 #include "xmlioserver_spl.hpp" 15 22 #include "object.hpp" 16 17 // Boost headers18 #include <boost/none.hpp>19 23 20 24 // /////////////////////////////// Définitions ////////////////////////////// // … … 37 41 { /* Ne rien faire de plus */ } 38 42 39 // ------------------------------- Destructeur ----------------------------- 43 // ------------------------------- Destructeur ------------------------------ 40 44 41 45 //- Destructeur de l'objet. … … 43 47 { /* Ne rien faire de plus */ } 44 48 45 // ------------------------------- Accesseurs ------------------------------ 49 // ------------------------------- Accesseurs ------------------------------- 46 50 47 51 //- Retourne l'identifiant de l'objet. … … 54 58 } 55 59 56 // --------------------------- Tests sur l'objet --------------------------- 60 // --------------------------- Tests sur l'objet ---------------------------- 57 61 58 62 //- Indique si l'objet est identifié. … … 62 66 } 63 67 64 // ------------------------------- Mutateurs ------------------------------- 68 // ------------------------------- Mutateurs -------------------------------- 65 69 66 70 //- Supprime l'identifiant de l'objet, rendant ce dernier anonyme. … … 76 80 } 77 81 78 // ----------------------- Opérateurs de comparaison ---------------------- 82 // ----------------------- Opérateurs de comparaison ------------------------ 79 83 80 84 //- Indique si deux objets sont identiques. … … 91 95 } 92 96 93 // --------------------------- Flux de sortie ---------------------------- 97 // --------------------------- Flux de sortie ------------------------------- 94 98 95 99 //- Opérateur de flux de sortie ascii. -
XMLIO_V2/dev/dev_rv/src4/xmlio/object.hpp
r215 r216 14 14 */ 15 15 16 #ifndef __XIOS_NO_EXTERN 17 16 18 // C++ standard headers 17 19 #include <string> … … 20 22 // Boost headers 21 23 #include <boost/optional.hpp> 24 25 #endif // __XIOS_NO_EXTERN 22 26 23 27 // ////////////////////////////// Déclarations ///////////////////////////// // -
XMLIO_V2/dev/dev_rv/src4/xmlio/xml/xml_node.cpp
r215 r216 19 19 namespace xml { 20 20 21 // ------------------------ Propriété statique privée ----------------------- 22 23 // Nom de l'élément racine du document xml. 24 std::string CXMLNode::RootName("simulation"); 21 25 26 // ------------------------------ Constructeurs ----------------------------- 27 28 // Constructeur d'un noeud xml. 29 CXMLNode::CXMLNode(rapidxml::xml_node<char> * const _root) 30 : node(_root) 31 { /* Ne rien faire de plus */ } 32 33 // ------------------------------- Destructeur ------------------------------ 34 35 // Destructeur de l'objet. 36 CXMLNode::~CXMLNode(void) 37 { /* Ne rien faire de plus */ } 38 39 // ------------------------------- Accesseurs ------------------------------- 40 41 // Retourne les valeurs d'attributs de l'élément courant (pointé dans le document xml). 42 std::map <std::string, std::string> CXMLNode::getAttributes(void) const 43 { 44 std::map <std::string, std::string> attributes; 45 rapidxml::xml_attribute<char> * currentAttr = NULL; 46 47 if ((currentAttr = this->node->first_attribute()) != NULL) 48 { 49 do 50 { 51 attributes.insert(std::pair<std::string, std::string> 52 (std::string(currentAttr->name()), 53 std::string(currentAttr->value()))); 54 } while ((currentAttr = currentAttr->next_attribute()) != NULL); 55 } 56 57 return (attributes) ; 58 } 59 60 // Retourne le nom de l'élément courant (pointé dans le document xml). 61 std::string CXMLNode::getElementName(void) const 62 { 63 return (this->node->name()); 64 } 65 66 // ------------------------------- Mutateurs -------------------------------- 67 68 // Déplace le pointeur du noeud actuel vers le suivant si possible. 69 bool CXMLNode::goToNextElement(void) 70 { 71 bool retvalue = false; 72 for(rapidxml::xml_node<char> * nextElement = this->node->next_sibling(); 73 ; nextElement = this->node->next_sibling()) 74 { 75 if (nextElement == NULL) break; 76 else if (nextElement->type() == rapidxml::node_element) 77 { 78 node = nextElement; 79 return (!retvalue); 80 } 81 } 82 return (retvalue); 83 } 84 85 // Déplace le pointeur du noeud actuel vers son premier enfant si possible. 86 bool CXMLNode::goToChildElement(void) 87 { 88 bool retvalue = false; 89 rapidxml::xml_node<char> * nextElement = this->node->first_node(); 90 if (nextElement != NULL) 91 { 92 for(;;nextElement = this->node->next_sibling()) 93 { 94 if (nextElement == NULL) break; 95 else if (nextElement->type() == rapidxml::node_element) 96 { 97 node = nextElement; 98 return (!retvalue); 99 } 100 } 101 } 102 return (retvalue); 103 } 104 105 // Déplace le pointeur du noeud actuel vers son parent si possible. 106 bool CXMLNode::goToParentElement(void) 107 { 108 bool retvalue = false; 109 if (!(this->getElementName().compare(CXMLNode::RootName))) 110 return (retvalue); 111 node = node->parent(); 112 return (!retvalue); 113 } 114 115 // -------------------------- Accesseurs statiques -------------------------- 116 117 // Retourne le nom de l'élément racine du document xml. 118 const std::string & CXMLNode::GetRootName(void) 119 { 120 return (CXMLNode::RootName); 121 } 22 122 23 123 } // namespace xml -
XMLIO_V2/dev/dev_rv/src4/xmlio/xml/xml_node.hpp
r215 r216 14 14 */ 15 15 16 #ifndef __XIOS_NO_EXTERN 17 16 18 // C++ standard headers 17 19 #include <string> … … 21 23 // rapidXML headers 22 24 #include <rapidxml.hpp> 25 26 #endif // __XIOS_NO_EXTERN 23 27 24 28 // XMLIOServer headers … … 31 35 namespace xml 32 36 { 37 /** 38 * \class CXMLNode 39 * \brief Classe de gestion des noeuds dans les documents XML. 40 */ 33 41 class CXMLNode 34 42 { -
XMLIO_V2/dev/dev_rv/src4/xmlio/xml/xml_parser.hpp
r215 r216 14 14 */ 15 15 16 #ifndef __XIOS_NO_EXTERN 17 16 18 // C++ standard headers 17 19 #include <string> 18 20 #include <iostream> 21 22 #endif // __XIOS_NO_EXTERN 19 23 20 24 // XMLIOServer headers
Note: See TracChangeset
for help on using the changeset viewer.