-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from convince-project/dev
Update with HL-SCXML and topics
- Loading branch information
Showing
25 changed files
with
1,155 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia | ||
// SPDX-License-Identifier: APACHE-2.0 | ||
|
||
/** | ||
* @file Translator.h | ||
* @brief This file contains the functions to translate the High-Level CONVINCE XML to the compilable SCXML used for code generation. | ||
* @version 0.1 | ||
* @date 2024-09-18 | ||
* | ||
*/ | ||
#include "Replacer.h" | ||
#include <fstream> | ||
|
||
/** | ||
* @brief Deletes a specific attribute of a given XML element | ||
* | ||
* @param element element from which to delete the attribute | ||
* @param attribute attribute name to be deleted | ||
* @return bool | ||
*/ | ||
bool deleteElementAttribute(tinyxml2::XMLElement* element, const std::string& attribute); | ||
|
||
/** | ||
* @brief Deletes a specific attribute from all elements in a vector | ||
* | ||
* @param elements vector of elements from which to delete the attribute | ||
* @param attribute attribute name to be deleted | ||
* @return bool Returns true if at least one attribute was successfully deleted, false otherwise | ||
*/ | ||
bool deleteElementAttributeFromVector(std::vector<tinyxml2::XMLElement*>& elements, const std::string& attribute); | ||
|
||
/** | ||
* @brief | ||
* | ||
* @param | ||
*/ | ||
bool readHLXMLFile(tinyxml2::XMLDocument& doc, const std::string fileName); | ||
|
||
/** | ||
* @brief | ||
* | ||
* @param | ||
*/ | ||
bool Translator(fileDataStr& fileData); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.