Skip to content

Commit

Permalink
Merge branch 'xmlparser_refacto' of github.com:rolalaro/visp into xml…
Browse files Browse the repository at this point in the history
…parser_refacto
  • Loading branch information
LAGNEAU Romain committed Dec 10, 2024
2 parents fc4fbfb + 523313c commit e442cc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
15 changes: 7 additions & 8 deletions modules/core/include/visp3/core/vpXmlParser.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* ViSP, open source Visual Servoing Platform software.
* Copyright (C) 2005 - 2023 by Inria. All rights reserved.
* Copyright (C) 2005 - 2024 by Inria. All rights reserved.
*
* This software is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -36,8 +36,8 @@
\brief Tools to simplify the creation of xml parser based on the libXML2
*/

#ifndef vpXmlParser_HH
#define vpXmlParser_HH
#ifndef VP_XML_PARSER_H
#define VP_XML_PARSER_H

#include <visp3/core/vpConfig.h>

Expand Down Expand Up @@ -113,7 +113,7 @@ BEGIN_VISP_NAMESPACE
range,
step,
size_filter
}dataToParse
} dataToParse
vpDataParser(){
nodeMap["config"] = config;
Expand All @@ -125,8 +125,7 @@ BEGIN_VISP_NAMESPACE
virtual void writeMainClass(xmlNodePtr node);
virtual void readMainClass(xmlDocPtr doc, xmlNodePtr node);
// additionals methods specific to the data to parse
// such as: accessors
// additional methods specific to the data to parse such as: accessors
}
\endcode
Expand Down Expand Up @@ -192,7 +191,7 @@ class VISP_EXPORT vpXmlParser
As the content of the function depends on the structure of the file to
read, data name, data types and data values, it has to be reimplemented
for every type of filenam
for every type of filename.
\param doc : a pointer representing the document
\param node : the root node of the document
Expand Down Expand Up @@ -272,7 +271,7 @@ class VISP_EXPORT vpXmlParser
dataToParse["size_filter"] = 3;
\endcode
Or, you can use keyzord instead of number as key but it implies to declare
Or, you can use keyword instead of number as key but it implies to declare
in the child class an enumeration type of the name. For example:
\code
Expand Down
8 changes: 4 additions & 4 deletions modules/core/src/tools/xml/vpXmlParser.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************************************************
*
* ViSP, open source Visual Servoing Platform software.
* Copyright (C) 2005 - 2023 by Inria. All rights reserved.
* Copyright (C) 2005 - 2024 by Inria. All rights reserved.
*
* This software is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -30,15 +30,15 @@
*
* Description:
* Tool to automatize the creation of xml parser based on the libXML2.
*
*****************************************************************************/
*/

#include <visp3/core/vpConfig.h>
#include <visp3/core/vpXmlParser.h>

#ifdef VISP_HAVE_XML2

#include <libxml/parser.h>

#include <visp3/core/vpXmlParser.h>
#include <visp3/core/vpDebug.h>
#include <visp3/core/vpException.h>

Expand Down

0 comments on commit e442cc7

Please sign in to comment.