Skip to content

Commit

Permalink
update license
Browse files Browse the repository at this point in the history
Signed-off-by: SofiaFaraci <[email protected]>
  • Loading branch information
SofiaFaraci committed May 28, 2024
1 parent 106577b commit 8d8698e
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 1,567 deletions.
9 changes: 0 additions & 9 deletions LICENSES/BSD-2-Clause.txt

This file was deleted.

26 changes: 0 additions & 26 deletions LICENSES/BSD-3-Clause.txt

This file was deleted.

7 changes: 0 additions & 7 deletions LICENSES/BSL-1.0.txt

This file was deleted.

99 changes: 0 additions & 99 deletions LICENSES/CC-BY-SA-3.0.txt

This file was deleted.

311 changes: 0 additions & 311 deletions LICENSES/GPL-2.0-or-later.txt

This file was deleted.

604 changes: 0 additions & 604 deletions LICENSES/GPL-3.0-or-later.txt

This file was deleted.

462 changes: 0 additions & 462 deletions LICENSES/LGPL-2.1-or-later.txt

This file was deleted.

11 changes: 0 additions & 11 deletions LICENSES/LicenseRef-FPL.txt

This file was deleted.

9 changes: 0 additions & 9 deletions LICENSES/MIT.txt

This file was deleted.

11 changes: 0 additions & 11 deletions LICENSES/Zlib.txt

This file was deleted.

5 changes: 0 additions & 5 deletions LICENSES/blessing.txt

This file was deleted.

5 changes: 3 additions & 2 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SPDX-FileCopyrightText: 2024-2024 Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
# SPDX-License-Identifier: APACHE-2.0

cmake_minimum_required(VERSION 3.16)
project(model2code)

Expand Down
17 changes: 10 additions & 7 deletions code/include/Data.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file Data.h
* @brief This file contains the structures used in the code generation and functions to manipulate the data.
Expand All @@ -16,13 +19,13 @@
#define interfaceFilePath "./templates/specifications/interfaces.xml"

#define templateFilePath "./templates/skills/template_skill/"
#define cppTemplateFileRelativePath "src/TemplateSkill.cpp"
#define hTemplateFileRelativePath "include/TemplateSkill.h"
#define cppDataModelTemplateFileRelativePath "src/TemplateSkillDataModel.cpp"
#define hDataModelTemplateFileRelativePath "include/TemplateSkillDataModel.h"
#define mainTemplateFileRelativePath "src/main.cpp"
#define cMakeTemplateFileRelativePath "CMakeLists.txt"
#define pkgTemplateFileRelativePath "package.xml"
#define cppTemplateFileRelativePath "/src/TemplateSkill.cpp"
#define hTemplateFileRelativePath "/include/TemplateSkill.h"
#define cppDataModelTemplateFileRelativePath "/src/TemplateSkillDataModel.cpp"
#define hDataModelTemplateFileRelativePath "/include/TemplateSkillDataModel.h"
#define mainTemplateFileRelativePath "/src/main.cpp"
#define cMakeTemplateFileRelativePath "/CMakeLists.txt"
#define pkgTemplateFileRelativePath "/package.xml"

#define RETURN_CODE_ERROR 1
#define RETURN_CODE_OK 0
Expand Down
3 changes: 3 additions & 0 deletions code/include/ExtractFromElement.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file ExtractFromElement.h
* @brief This file is the header file for the ExtractFromElement.cpp file.
Expand Down
3 changes: 3 additions & 0 deletions code/include/ExtractFromXML.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file ExtractFromXML.h
* @brief This file is the header file for the ExtractFromXML.cpp file.
Expand Down
3 changes: 3 additions & 0 deletions code/include/Replacer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file Replacer.h
* @brief This file contains the functions to replace the placeholders in the template files with the data from the input file.
Expand Down
3 changes: 3 additions & 0 deletions code/include/strManipulation.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file strManipulation.h
* @brief Functions to manipulate strings.
Expand Down
3 changes: 3 additions & 0 deletions code/src/Data.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file Data.cpp
* @brief This file contains the structures used in the code generation and functions to manipulate the data.
Expand Down
3 changes: 3 additions & 0 deletions code/src/ExtractFromElement.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file ExtractFromElement.cpp
* @brief This file contains the functions to extract data from an XML element.
Expand Down
3 changes: 3 additions & 0 deletions code/src/ExtractFromXML.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file ExtractFromXML.cpp
* @brief This file contains the functions to extract data from custom XML files.
Expand Down
5 changes: 4 additions & 1 deletion code/src/Replacer.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file Replacer.cpp
* @brief This file contains the functions to replace the placeholders in the template files with the data from the input file.
Expand Down Expand Up @@ -390,7 +393,7 @@ bool Replacer(fileDataStr& fileData, templateFileDataStr& templateFileData)
}
getEventsVecData(fileData, elementsTransition, elementsSend);
replaceEventCode(codeMap);

std::cout << "-----------" << std::endl;
if(fileData.datamodel_mode)
{
writeFile(fileData.outputPathInclude + fileData.outputDatamodelFileNameH, codeMap["hDataModelCode"]);
Expand Down
9 changes: 6 additions & 3 deletions code/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file main.cpp
* @brief this file contains the main function.
Expand Down Expand Up @@ -105,8 +108,9 @@ bool handleInputs(int argc, char* argv[], fileDataStr& fileData, templateFileDat
}
}

fileData.outputPathInclude = fileData.outputPath + "include/";
fileData.outputPathSrc = fileData.outputPath + "src/";
fileData.outputPath = fileData.outputPath + "/";
fileData.outputPathInclude = fileData.outputPath + "/include/";
fileData.outputPathSrc = fileData.outputPath + "/src/";
return RETURN_CODE_OK;
}

Expand All @@ -124,7 +128,6 @@ int main(int argc, char* argv[])

if(handleInputs(argc, argv, fileData, templateFileData))
{
std::cout << "Error in input handling" << std::endl;
return RETURN_CODE_ERROR;
}

Expand Down
4 changes: 4 additions & 0 deletions code/src/strManipulation.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Humanoid Sensing and Perception, Istituto Italiano di Tecnologia
// SPDX-License-Identifier: APACHE-2.0

/**
* @file strManipulation.cpp
* @brief Functions to manipulate strings.
Expand Down Expand Up @@ -118,6 +121,7 @@ bool writeFile(const std::string filePath, const std::string fileContent)
}
outputFile << fileContent;
outputFile.close();
std::cout << filePath << " file generated" << std::endl;
return true;
}

Expand Down

0 comments on commit 8d8698e

Please sign in to comment.