diff --git a/common/.editorconfig b/common/.editorconfig index 7adb9d98b..e1f759220 100644 --- a/common/.editorconfig +++ b/common/.editorconfig @@ -1,4 +1,6 @@ # EditorConfig is awesome: http://EditorConfig.org +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 # top-most EditorConfig file root = true diff --git a/common/.gitignore b/common/.gitignore index a0155cb29..0b81c0184 100644 --- a/common/.gitignore +++ b/common/.gitignore @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 + /build*/ diff --git a/common/.gitlab-ci.yml b/common/.gitlab-ci.yml index 7d4e9e999..8c01e6f3f 100644 --- a/common/.gitlab-ci.yml +++ b/common/.gitlab-ci.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 +--- variables: GIT_DEPTH: 0 GIT_SUBMODULE_STRATEGY: recursive @@ -10,7 +13,6 @@ stages: - test # Stage: prepare -############################################################################## # Build docker image which is used to build & test VILLAScommon docker-dev: @@ -22,7 +24,6 @@ docker-dev: - docker # Stage: build -############################################################################## build:source: stage: build @@ -38,7 +39,7 @@ build:source: - docker # Stage: test -############################################################################## + test:unit: stage: test @@ -74,3 +75,11 @@ test:cppcheck: paths: - cppcheck.log expose_as: cppcheck + +test:reuse: + stage: test + image: + name: fsfe/reuse:latest + entrypoint: [""] + script: + - reuse lint diff --git a/common/.reuse/dep5 b/common/.reuse/dep5 new file mode 100644 index 000000000..16504e2d9 --- /dev/null +++ b/common/.reuse/dep5 @@ -0,0 +1,8 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: VILLAScommon +Upstream-Contact: Steffen Vogel +Source: https://fein-aachen.org/en/projects/villas-common/ + +Files: .vscode/*.json doc/pictures/eonerc_logo.png +Copyright: 2018-2023, Institute for Automation of Complex Power Systems, RWTH Aachen University +License: Apache-2.0 diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index a1d46efcf..3cb12ee46 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,12 +1,8 @@ ## CMakeLists.txt # -# @author Daniel Krebs -# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC -# @license Apache License 2.0 -# -# VILLAScommon -# -############################################################################## +# Author: Daniel Krebs +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.14) diff --git a/common/COPYING.md b/common/COPYING.md deleted file mode 100644 index d0af96c39..000000000 --- a/common/COPYING.md +++ /dev/null @@ -1,194 +0,0 @@ -Apache License -============== - -_Version 2.0, January 2004_ -_<>_ - -### Terms and Conditions for use, reproduction, and distribution - -#### 1. Definitions - -“License” shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -“Licensor” shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -“Legal Entity” shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, “control” means **(i)** the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the -outstanding shares, or **(iii)** beneficial ownership of such entity. - -“You” (or “Your”) shall mean an individual or Legal Entity exercising -permissions granted by this License. - -“Source” form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -“Object” form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -“Work” shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -“Derivative Works” shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -“Contribution” shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -“submitted” means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as “Not a Contribution.” - -“Contributor” shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -#### 2. Grant of Copyright License - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -#### 3. Grant of Patent License - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -#### 4. Redistribution - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -* **(a)** You must give any other recipients of the Work or Derivative Works a copy of -this License; and -* **(b)** You must cause any modified files to carry prominent notices stating that You -changed the files; and -* **(c)** You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -* **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. - -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -#### 5. Submission of Contributions - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -#### 6. Trademarks - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -#### 7. Disclaimer of Warranty - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -#### 8. Limitation of Liability - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -#### 9. Accepting Warranty or Additional Liability - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -_END OF TERMS AND CONDITIONS_ - -### APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets `[]` replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same “printed page” as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/common/Dockerfile b/common/Dockerfile index 9eb29fb09..ea2505bad 100644 --- a/common/Dockerfile +++ b/common/Dockerfile @@ -8,13 +8,12 @@ # by running: # make docker # -# @author Steffen Vogel -# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC -# @license Apache License 2.0 +# Author: Steffen Vogel +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 # # VILLAScommon # -################################################################################### FROM fedora:36 diff --git a/common/LICENSE b/common/LICENSE new file mode 100644 index 000000000..38ab65d4f --- /dev/null +++ b/common/LICENSE @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/common/LICENSES/Apache-2.0.txt b/common/LICENSES/Apache-2.0.txt new file mode 100644 index 000000000..38ab65d4f --- /dev/null +++ b/common/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/common/LICENSES/WTFPL.txt b/common/LICENSES/WTFPL.txt new file mode 100644 index 000000000..e007a5741 --- /dev/null +++ b/common/LICENSES/WTFPL.txt @@ -0,0 +1,11 @@ +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar + +Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. + +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/common/README.md b/common/README.md index cdc4464fd..fa19249b9 100644 --- a/common/README.md +++ b/common/README.md @@ -9,16 +9,16 @@ VILLAScommon is a shared library used by various other C++ components of VILLASf User documentation is available here: -## Copyright - -- 2014-2022 Steffen Vogel - ## License -This project is released under the terms of the [Apache 2.0 license](COPYING.md). +This project is released under the terms of the [Apache 2.0 license](LICENSE). For other licensing options please consult [Prof. Antonello Monti](mailto:amonti@eonerc.rwth-aachen.de). +- SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +- SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH +- SPDX-License-Identifier: Apache-2.0 + ## Contact [![EONERC ACS Logo](doc/pictures/eonerc_logo.png)](http://www.acs.eonerc.rwth-aachen.de) diff --git a/common/cmake/FindCriterion.cmake b/common/cmake/FindCriterion.cmake index 0e4a2c069..34ee4d0a9 100644 --- a/common/cmake/FindCriterion.cmake +++ b/common/cmake/FindCriterion.cmake @@ -1,12 +1,12 @@ -# This file is licensed under the WTFPL version 2 -- you can see the full -# license over at http://www.wtfpl.net/txt/copying/ -# -# - Try to find Criterion +# Try to find Criterion # # Once done this will define # CRITERION_FOUND - System has Criterion # CRITERION_INCLUDE_DIRS - The Criterion include directories # CRITERION_LIBRARIES - The libraries needed to use Criterion +# +# SPDX-FileCopyrightText: 2017 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: WTFPL find_package(PkgConfig) @@ -19,7 +19,8 @@ set(CRITERION_LIBRARIES ${CRITERION_LIBRARY}) set(CRITERION_INCLUDE_DIRS ${CRITERION_INCLUDE_DIR}) include(FindPackageHandleStandardArgs) -# handle the QUIET and REQUIRED arguments and set CRITERION_FOUND to TRUE + +# Handle the QUIET and REQUIRED arguments and set CRITERION_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(Criterion DEFAULT_MSG CRITERION_LIBRARY CRITERION_INCLUDE_DIR) diff --git a/common/cmake/GetVersion.cmake b/common/cmake/GetVersion.cmake index 8b01b2326..688f92c6d 100644 --- a/common/cmake/GetVersion.cmake +++ b/common/cmake/GetVersion.cmake @@ -1,12 +1,11 @@ # CMakeLists.txt. # -# @author Steffen Vogel -# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC -# @license Apache License 2.0 +# Author: Steffen Vogel +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 # # VILLASnode -################################################################################### # This CMake function sets the following variables: # diff --git a/common/include/villas/boxes.hpp b/common/include/villas/boxes.hpp index 535973738..7c1243f7a 100644 --- a/common/include/villas/boxes.hpp +++ b/common/include/villas/boxes.hpp @@ -1,9 +1,8 @@ /* Various helper functions. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/buffer.hpp b/common/include/villas/buffer.hpp index 30220de2f..015c5095c 100644 --- a/common/include/villas/buffer.hpp +++ b/common/include/villas/buffer.hpp @@ -1,9 +1,8 @@ /* A simple buffer for encoding streamed JSON messages. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/colors.hpp b/common/include/villas/colors.hpp index 7d6f20778..e98f58d42 100644 --- a/common/include/villas/colors.hpp +++ b/common/include/villas/colors.hpp @@ -1,9 +1,8 @@ /* Various helper functions. * - * @file - * @author Steffen Vogel - * @copyright 2017, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2017 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/common.hpp b/common/include/villas/common.hpp index abd82c284..0ed06b273 100644 --- a/common/include/villas/common.hpp +++ b/common/include/villas/common.hpp @@ -1,9 +1,8 @@ /* Some common defines, enums and datastructures. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/compat.hpp b/common/include/villas/compat.hpp index a224d4520..ea65fe85a 100644 --- a/common/include/villas/compat.hpp +++ b/common/include/villas/compat.hpp @@ -1,8 +1,8 @@ /* Compatability for different library versions. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/config.hpp.in b/common/include/villas/config.hpp.in index e483ccdc3..7d667bee3 100644 --- a/common/include/villas/config.hpp.in +++ b/common/include/villas/config.hpp.in @@ -3,10 +3,9 @@ * This file contains some compiled-in settings. * This settings are not part of the configuration file. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 *********************************************************************************/ #pragma once diff --git a/common/include/villas/cpuset.hpp b/common/include/villas/cpuset.hpp index 765511895..c5d1e5cf1 100644 --- a/common/include/villas/cpuset.hpp +++ b/common/include/villas/cpuset.hpp @@ -1,9 +1,8 @@ /* Human readable cpusets. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/dsp/exponential_window.hpp b/common/include/villas/dsp/exponential_window.hpp index 31e001ea0..f6a1d8928 100644 --- a/common/include/villas/dsp/exponential_window.hpp +++ b/common/include/villas/dsp/exponential_window.hpp @@ -1,9 +1,8 @@ /* An exponential window. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/dsp/moving_average_window.hpp b/common/include/villas/dsp/moving_average_window.hpp index 6c4999adc..449c0880a 100644 --- a/common/include/villas/dsp/moving_average_window.hpp +++ b/common/include/villas/dsp/moving_average_window.hpp @@ -1,9 +1,8 @@ /* A moving average window. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/dsp/pid.hpp b/common/include/villas/dsp/pid.hpp index 7eb104ff2..3c452af80 100644 --- a/common/include/villas/dsp/pid.hpp +++ b/common/include/villas/dsp/pid.hpp @@ -1,9 +1,8 @@ /* A PID controller. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/dsp/window.hpp b/common/include/villas/dsp/window.hpp index 931bf14f0..716bcb104 100644 --- a/common/include/villas/dsp/window.hpp +++ b/common/include/villas/dsp/window.hpp @@ -1,9 +1,8 @@ /* A sliding/moving window. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/dsp/window_cosine.hpp b/common/include/villas/dsp/window_cosine.hpp index 0a8b18e5b..294a4f7d2 100644 --- a/common/include/villas/dsp/window_cosine.hpp +++ b/common/include/villas/dsp/window_cosine.hpp @@ -1,9 +1,8 @@ /* A sliding/moving window. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/exceptions.hpp b/common/include/villas/exceptions.hpp index d63d9ff31..c2402a54f 100644 --- a/common/include/villas/exceptions.hpp +++ b/common/include/villas/exceptions.hpp @@ -1,9 +1,8 @@ /* Common exceptions. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/graph/directed.hpp b/common/include/villas/graph/directed.hpp index 0e5c06832..239f5618e 100644 --- a/common/include/villas/graph/directed.hpp +++ b/common/include/villas/graph/directed.hpp @@ -1,9 +1,8 @@ /* A directed graph. * - * @file - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/graph/edge.hpp b/common/include/villas/graph/edge.hpp index f2acc9969..6bfd235a9 100644 --- a/common/include/villas/graph/edge.hpp +++ b/common/include/villas/graph/edge.hpp @@ -1,9 +1,8 @@ /* A graph edge. * - * @file - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/graph/vertex.hpp b/common/include/villas/graph/vertex.hpp index 048d9f6cc..7c9c690bc 100644 --- a/common/include/villas/graph/vertex.hpp +++ b/common/include/villas/graph/vertex.hpp @@ -1,9 +1,8 @@ /* A graph vertex. * - * @file - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/hist.hpp b/common/include/villas/hist.hpp index 0d05b6bff..24761613a 100644 --- a/common/include/villas/hist.hpp +++ b/common/include/villas/hist.hpp @@ -1,9 +1,8 @@ /* Histogram class. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/kernel/kernel.hpp b/common/include/villas/kernel/kernel.hpp index 2f72a6e32..787672ad0 100644 --- a/common/include/villas/kernel/kernel.hpp +++ b/common/include/villas/kernel/kernel.hpp @@ -1,9 +1,8 @@ /* Linux kernel related functions. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/kernel/pci.hpp b/common/include/villas/kernel/pci.hpp index 6371cb8d2..1df79c0e0 100644 --- a/common/include/villas/kernel/pci.hpp +++ b/common/include/villas/kernel/pci.hpp @@ -1,9 +1,8 @@ /* Linux PCI helpers * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/kernel/rt.hpp b/common/include/villas/kernel/rt.hpp index 4aac73517..4fe7edcf4 100644 --- a/common/include/villas/kernel/rt.hpp +++ b/common/include/villas/kernel/rt.hpp @@ -1,10 +1,9 @@ /* Linux specific real-time optimizations * * @see: https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/application_base - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/kernel/vfio_container.hpp b/common/include/villas/kernel/vfio_container.hpp index c4cbaf780..a91addf7d 100644 --- a/common/include/villas/kernel/vfio_container.hpp +++ b/common/include/villas/kernel/vfio_container.hpp @@ -1,12 +1,12 @@ /* Virtual Function IO wrapper around kernel API * - * @file - * @author Niklas Eiling - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2022, Niklas Eiling - * @copyright 2014-2021, Steffen Vogel - * @copyright 2018, Daniel Krebs + * Author: Niklas Eiling + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2022-2023 Niklas Eiling + * SPDX-FileCopyrightText: 2014-2023 Steffen Vogel + * SPDX-FileCopyrightText: 2018 Daniel Krebs + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/kernel/vfio_device.hpp b/common/include/villas/kernel/vfio_device.hpp index 0196684f7..564cecce0 100644 --- a/common/include/villas/kernel/vfio_device.hpp +++ b/common/include/villas/kernel/vfio_device.hpp @@ -1,12 +1,12 @@ /* Virtual Function IO wrapper around kernel API * - * @file - * @author Niklas Eiling - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2022, Niklas Eiling - * @copyright 2014-2021, Steffen Vogel - * @copyright 2018, Daniel Krebs + * Author: Niklas Eiling + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2022-2023 Niklas Eiling + * SPDX-FileCopyrightText: 2014-2023 Steffen Vogel + * SPDX-FileCopyrightText: 2018 Daniel Krebs + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/kernel/vfio_group.hpp b/common/include/villas/kernel/vfio_group.hpp index ccc9337c6..ada68f066 100644 --- a/common/include/villas/kernel/vfio_group.hpp +++ b/common/include/villas/kernel/vfio_group.hpp @@ -1,12 +1,12 @@ /* Virtual Function IO wrapper around kernel API * - * @file - * @author Niklas Eiling - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2022, Niklas Eiling - * @copyright 2014-2021, Steffen Vogel - * @copyright 2018, Daniel Krebs + * Author: Niklas Eiling + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2022-2023 Niklas Eiling + * SPDX-FileCopyrightText: 2014-2023 Steffen Vogel + * SPDX-FileCopyrightText: 2018 Daniel Krebs + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/list.hpp b/common/include/villas/list.hpp index 49f7f5745..3bbc64b4f 100644 --- a/common/include/villas/list.hpp +++ b/common/include/villas/list.hpp @@ -6,12 +6,10 @@ * Internally, an array of pointers is used to store the pointers. * If needed, this array will grow by realloc(). * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * - * VILLAScommon - * */ + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once diff --git a/common/include/villas/log.hpp b/common/include/villas/log.hpp index dd79bf6d8..eccc81510 100644 --- a/common/include/villas/log.hpp +++ b/common/include/villas/log.hpp @@ -1,10 +1,9 @@ /* Logging. * - * @file - * @author Daniel Krebs - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/memory.hpp b/common/include/villas/memory.hpp index 19388940f..3939d5602 100644 --- a/common/include/villas/memory.hpp +++ b/common/include/villas/memory.hpp @@ -1,9 +1,8 @@ /* Memory management. * - * @file - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/memory_manager.hpp b/common/include/villas/memory_manager.hpp index 7913f283d..9592b9334 100644 --- a/common/include/villas/memory_manager.hpp +++ b/common/include/villas/memory_manager.hpp @@ -1,9 +1,8 @@ /* Memory manager. * - * @file - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/plugin.hpp b/common/include/villas/plugin.hpp index b265db045..94b8946f5 100644 --- a/common/include/villas/plugin.hpp +++ b/common/include/villas/plugin.hpp @@ -1,10 +1,9 @@ /* Loadable / plugin support. * - * @file - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/popen.hpp b/common/include/villas/popen.hpp index 93079b5ad..b99af8d72 100644 --- a/common/include/villas/popen.hpp +++ b/common/include/villas/popen.hpp @@ -1,9 +1,8 @@ /* Bi-directional popen * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/table.hpp b/common/include/villas/table.hpp index e1f1cb222..867ee18ef 100644 --- a/common/include/villas/table.hpp +++ b/common/include/villas/table.hpp @@ -1,9 +1,8 @@ /* Print fancy tables * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/task.hpp b/common/include/villas/task.hpp index 960493d29..9c9a8608f 100644 --- a/common/include/villas/task.hpp +++ b/common/include/villas/task.hpp @@ -1,9 +1,8 @@ /* Run tasks periodically. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/terminal.hpp b/common/include/villas/terminal.hpp index af7f2d45d..65bd40a89 100644 --- a/common/include/villas/terminal.hpp +++ b/common/include/villas/terminal.hpp @@ -1,9 +1,8 @@ /* Terminal handling. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/timing.hpp b/common/include/villas/timing.hpp index 19a84ad1d..df1468264 100644 --- a/common/include/villas/timing.hpp +++ b/common/include/villas/timing.hpp @@ -1,9 +1,8 @@ /* Time related functions. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/tool.hpp b/common/include/villas/tool.hpp index 3e7b291c8..7247a0738 100644 --- a/common/include/villas/tool.hpp +++ b/common/include/villas/tool.hpp @@ -1,9 +1,8 @@ /* Common entry point for all villas command line tools. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/tsc.hpp b/common/include/villas/tsc.hpp index bef1bec07..0370a0a67 100644 --- a/common/include/villas/tsc.hpp +++ b/common/include/villas/tsc.hpp @@ -1,9 +1,8 @@ /* Measure time and sleep with IA-32 time-stamp counter. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/utils.hpp b/common/include/villas/utils.hpp index 00afb2f05..9b333d510 100644 --- a/common/include/villas/utils.hpp +++ b/common/include/villas/utils.hpp @@ -1,10 +1,9 @@ /* Utilities. * - * @file - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/uuid.hpp b/common/include/villas/uuid.hpp index 2444d0a87..5eee3f5fd 100644 --- a/common/include/villas/uuid.hpp +++ b/common/include/villas/uuid.hpp @@ -1,9 +1,8 @@ /* UUID helpers. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/include/villas/version.hpp b/common/include/villas/version.hpp index 96f09560b..5f704edac 100644 --- a/common/include/villas/version.hpp +++ b/common/include/villas/version.hpp @@ -1,9 +1,8 @@ /* Version. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #pragma once diff --git a/common/lib/CMakeLists.txt b/common/lib/CMakeLists.txt index 987ef30b5..e4b2a5845 100644 --- a/common/lib/CMakeLists.txt +++ b/common/lib/CMakeLists.txt @@ -1,12 +1,11 @@ ## CMakeLists.txt # -# @author Daniel Krebs -# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC -# @license Apache License 2.0 +# Author: Daniel Krebs +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 # # VILLAScommon -# -############################################################################## + add_library(villas-common SHARED base64.cpp diff --git a/common/lib/base64.cpp b/common/lib/base64.cpp index 79acb754d..c4c5188bd 100644 --- a/common/lib/base64.cpp +++ b/common/lib/base64.cpp @@ -1,8 +1,8 @@ /* Base64 encoding/decoding * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/buffer.cpp b/common/lib/buffer.cpp index 69a34b7d0..e6c814ded 100644 --- a/common/lib/buffer.cpp +++ b/common/lib/buffer.cpp @@ -1,8 +1,8 @@ /* A simple buffer for encoding streamed JSON messages. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/common.cpp b/common/lib/common.cpp index 0faa6c4d8..db6c5fb5d 100644 --- a/common/lib/common.cpp +++ b/common/lib/common.cpp @@ -1,8 +1,8 @@ /* Common code. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/compat.cpp b/common/lib/compat.cpp index eac6d2fba..8aa26e4ba 100644 --- a/common/lib/compat.cpp +++ b/common/lib/compat.cpp @@ -1,8 +1,8 @@ /* Compatability for different library versions. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/cpuset.cpp b/common/lib/cpuset.cpp index 7faa806e2..e080c486e 100644 --- a/common/lib/cpuset.cpp +++ b/common/lib/cpuset.cpp @@ -1,9 +1,8 @@ /* Human readable cpusets. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/dsp/pid.cpp b/common/lib/dsp/pid.cpp index ea9262d56..ba8739910 100644 --- a/common/lib/dsp/pid.cpp +++ b/common/lib/dsp/pid.cpp @@ -1,8 +1,8 @@ /* A PID controller. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/hist.cpp b/common/lib/hist.cpp index 98ac46d40..f39067496 100644 --- a/common/lib/hist.cpp +++ b/common/lib/hist.cpp @@ -1,8 +1,8 @@ /* Histogram class. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/kernel/kernel.cpp b/common/lib/kernel/kernel.cpp index 03c822986..0ccdeb073 100644 --- a/common/lib/kernel/kernel.cpp +++ b/common/lib/kernel/kernel.cpp @@ -1,8 +1,8 @@ /* Linux kernel related functions. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/kernel/pci.cpp b/common/lib/kernel/pci.cpp index fa2eb9fa9..50a6abc66 100644 --- a/common/lib/kernel/pci.cpp +++ b/common/lib/kernel/pci.cpp @@ -1,8 +1,8 @@ /* Linux PCI helpers * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/kernel/rt.cpp b/common/lib/kernel/rt.cpp index 1e5016ec5..329a8ea43 100644 --- a/common/lib/kernel/rt.cpp +++ b/common/lib/kernel/rt.cpp @@ -1,8 +1,8 @@ /* Linux specific real-time optimizations * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/kernel/vfio_container.cpp b/common/lib/kernel/vfio_container.cpp index 6d22231f6..93ecd3cd6 100644 --- a/common/lib/kernel/vfio_container.cpp +++ b/common/lib/kernel/vfio_container.cpp @@ -1,10 +1,10 @@ /* Virtual Function IO wrapper around kernel API * - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2014-2021, Steffen Vogel - * @copyright 2018, Daniel Krebs - * @license Apache License 2.0 + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2021 Steffen Vogel + * SPDX-FileCopyrightText: 2018 Daniel Krebs + * SPDX-License-Identifier: Apache-2.0 */ #define _DEFAULT_SOURCE diff --git a/common/lib/kernel/vfio_device.cpp b/common/lib/kernel/vfio_device.cpp index 7047551c0..ea3987c55 100644 --- a/common/lib/kernel/vfio_device.cpp +++ b/common/lib/kernel/vfio_device.cpp @@ -1,12 +1,12 @@ /* Virtual Function IO wrapper around kernel API * - * @author Niklas Eiling - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2022, Niklas Eiling - * @copyright 2014-2021, Steffen Vogel - * @copyright 2018, Daniel Krebs - * @license Apache License 2.0 + * Author: Niklas Eiling + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2022-2023 Niklas Eiling + * SPDX-FileCopyrightText: 2014-2023 Steffen Vogel + * SPDX-FileCopyrightText: 2018 Daniel Krebs + * SPDX-License-Identifier: Apache-2.0 */ #define _DEFAULT_SOURCE diff --git a/common/lib/kernel/vfio_group.cpp b/common/lib/kernel/vfio_group.cpp index 4039dc7cc..6f5e7aa54 100644 --- a/common/lib/kernel/vfio_group.cpp +++ b/common/lib/kernel/vfio_group.cpp @@ -1,10 +1,10 @@ /* Virtual Function IO wrapper around kernel API * - * @author Steffen Vogel - * @author Daniel Krebs - * @copyright 2014-2021, Steffen Vogel - * @copyright 2018, Daniel Krebs - * @license Apache License 2.0 + * Author: Steffen Vogel + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2021 Steffen Vogel + * SPDX-FileCopyrightText: 2018 Daniel Krebs + * SPDX-License-Identifier: Apache-2.0 */ #define _DEFAULT_SOURCE diff --git a/common/lib/list.cpp b/common/lib/list.cpp index e75dd7cec..4f99cefce 100644 --- a/common/lib/list.cpp +++ b/common/lib/list.cpp @@ -2,9 +2,9 @@ * * Linked lists a used for several data structures in the code. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/log.cpp b/common/lib/log.cpp index c8dfea802..019b577ab 100644 --- a/common/lib/log.cpp +++ b/common/lib/log.cpp @@ -1,8 +1,8 @@ /* Logging and debugging routines * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/memory.cpp b/common/lib/memory.cpp index c9564b9e2..c7a4bece9 100644 --- a/common/lib/memory.cpp +++ b/common/lib/memory.cpp @@ -1,8 +1,8 @@ /* Memory managment. * - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/memory_manager.cpp b/common/lib/memory_manager.cpp index 4dd445fac..20006aeac 100644 --- a/common/lib/memory_manager.cpp +++ b/common/lib/memory_manager.cpp @@ -1,8 +1,8 @@ /* Memory managment. * - * @author Daniel Krebs - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/plugin.cpp b/common/lib/plugin.cpp index f97f928d4..4c35042cd 100644 --- a/common/lib/plugin.cpp +++ b/common/lib/plugin.cpp @@ -1,8 +1,8 @@ /* Loadable / plugin support. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/popen.cpp b/common/lib/popen.cpp index 557ed0faa..5d8e4e228 100644 --- a/common/lib/popen.cpp +++ b/common/lib/popen.cpp @@ -1,8 +1,8 @@ /* Bi-directional popen * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/table.cpp b/common/lib/table.cpp index a9a1ebc03..cb3b9ca57 100644 --- a/common/lib/table.cpp +++ b/common/lib/table.cpp @@ -1,8 +1,8 @@ /* Print fancy tables. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/task.cpp b/common/lib/task.cpp index 83070782b..100b086e5 100644 --- a/common/lib/task.cpp +++ b/common/lib/task.cpp @@ -1,8 +1,8 @@ /* Run tasks periodically. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/terminal.cpp b/common/lib/terminal.cpp index ec4b052f3..b812c4ee0 100644 --- a/common/lib/terminal.cpp +++ b/common/lib/terminal.cpp @@ -1,8 +1,8 @@ /* Terminal handling. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/timing.cpp b/common/lib/timing.cpp index a1e99540d..2a627e1c9 100644 --- a/common/lib/timing.cpp +++ b/common/lib/timing.cpp @@ -1,8 +1,8 @@ /* Time related functions. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/tool.cpp b/common/lib/tool.cpp index db689039c..baa72f4a4 100644 --- a/common/lib/tool.cpp +++ b/common/lib/tool.cpp @@ -1,8 +1,8 @@ /* Common entry point for all villas command line tools. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include @@ -21,7 +21,7 @@ void Tool::printCopyright() { std::cout << PROJECT_NAME " " << CLR_BLU(PROJECT_BUILD_ID) << " (built on " CLR_MAG(__DATE__) " " CLR_MAG(__TIME__) ")" << std::endl - << " Copyright 2014-2021, Institute for Automation of Complex Power Systems, EONERC" << std::endl + << " Copyright 2014-2021, Institute for Automation of Complex Power Systems, RWTH Aachen University" << std::endl << " Steffen Vogel " << std::endl; } diff --git a/common/lib/tsc.cpp b/common/lib/tsc.cpp index ac78e6c6a..0cf16a5a6 100644 --- a/common/lib/tsc.cpp +++ b/common/lib/tsc.cpp @@ -1,9 +1,8 @@ /* Measure time and sleep with IA-32 time-stamp counter. * - * @file - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/utils.cpp b/common/lib/utils.cpp index 516b24e34..f755dc07c 100644 --- a/common/lib/utils.cpp +++ b/common/lib/utils.cpp @@ -1,9 +1,9 @@ /* Utilities. * - * @author Daniel Krebs - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Daniel Krebs + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/uuid.cpp b/common/lib/uuid.cpp index e125b713e..e19d3f2f1 100644 --- a/common/lib/uuid.cpp +++ b/common/lib/uuid.cpp @@ -1,8 +1,8 @@ /* UUID helpers. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/lib/version.cpp b/common/lib/version.cpp index b0c8745e3..e057b9ac6 100644 --- a/common/lib/version.cpp +++ b/common/lib/version.cpp @@ -1,8 +1,8 @@ /* Version. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/CMakeLists.txt b/common/tests/CMakeLists.txt index f0d87cd50..9d4912b36 100644 --- a/common/tests/CMakeLists.txt +++ b/common/tests/CMakeLists.txt @@ -1,3 +1,8 @@ +# CMakeLists.txt. +# +# Author: Steffen Vogel +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 # We only have unit tests for now -add_subdirectory(unit) \ No newline at end of file +add_subdirectory(unit) diff --git a/common/tests/unit/CMakeLists.txt b/common/tests/unit/CMakeLists.txt index 5fcebd050..6d31419b3 100644 --- a/common/tests/unit/CMakeLists.txt +++ b/common/tests/unit/CMakeLists.txt @@ -1,12 +1,10 @@ ## CMakeLists.txt # -# @author Daniel Krebs -# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC -# @license Apache License 2.0 +# Author: Daniel Krebs +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-License-Identifier: Apache-2.0 # # VILLAScommon -# -############################################################################## add_executable(unit-tests-common buffer.cpp diff --git a/common/tests/unit/base64.cpp b/common/tests/unit/base64.cpp index 2d836448f..44f8c00c0 100644 --- a/common/tests/unit/base64.cpp +++ b/common/tests/unit/base64.cpp @@ -1,8 +1,8 @@ /* Unit tests for base64 encoding/decoding * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/buffer.cpp b/common/tests/unit/buffer.cpp index 418f450c6..a5f601c36 100644 --- a/common/tests/unit/buffer.cpp +++ b/common/tests/unit/buffer.cpp @@ -1,8 +1,8 @@ /* Unit tests for buffer * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/graph.cpp b/common/tests/unit/graph.cpp index ec44cbfc6..fbf503076 100644 --- a/common/tests/unit/graph.cpp +++ b/common/tests/unit/graph.cpp @@ -1,8 +1,8 @@ /* Graph unit test. * - * @author Steffen Vogel - * @copyright 2014-2021, Steffen Vogel - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2021 Steffen Vogel + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/hist.cpp b/common/tests/unit/hist.cpp index 49ea032b5..e18d4e31d 100644 --- a/common/tests/unit/hist.cpp +++ b/common/tests/unit/hist.cpp @@ -1,8 +1,8 @@ /* Unit tests for histogram * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/kernel.cpp b/common/tests/unit/kernel.cpp index 026fbf2da..f3968a5ed 100644 --- a/common/tests/unit/kernel.cpp +++ b/common/tests/unit/kernel.cpp @@ -1,8 +1,8 @@ /* Unit tests for kernel functions. * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/list.cpp b/common/tests/unit/list.cpp index 595926d13..fea4aef1b 100644 --- a/common/tests/unit/list.cpp +++ b/common/tests/unit/list.cpp @@ -1,8 +1,8 @@ /* Unit tests for array-based list * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/popen.cpp b/common/tests/unit/popen.cpp index 73e530ae6..39b51e1c4 100644 --- a/common/tests/unit/popen.cpp +++ b/common/tests/unit/popen.cpp @@ -1,8 +1,8 @@ /* Unit tests for bi-directional popen * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/task.cpp b/common/tests/unit/task.cpp index 387296d1e..e6426767c 100644 --- a/common/tests/unit/task.cpp +++ b/common/tests/unit/task.cpp @@ -1,8 +1,8 @@ /* Unit tests for periodic tasks * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/timing.cpp b/common/tests/unit/timing.cpp index 2c7ce9168..d9997576b 100644 --- a/common/tests/unit/timing.cpp +++ b/common/tests/unit/timing.cpp @@ -1,8 +1,8 @@ /* Unit tests for time related utlities * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/tsc.cpp b/common/tests/unit/tsc.cpp index 8c5baa92a..3c05b7b0b 100644 --- a/common/tests/unit/tsc.cpp +++ b/common/tests/unit/tsc.cpp @@ -1,8 +1,8 @@ /* Unit tests for rdtsc * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/common/tests/unit/utils.cpp b/common/tests/unit/utils.cpp index 5a70768c0..d700f099a 100644 --- a/common/tests/unit/utils.cpp +++ b/common/tests/unit/utils.cpp @@ -1,8 +1,8 @@ /* Unit tests for utilities * - * @author Steffen Vogel - * @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC - * @license Apache License 2.0 + * Author: Steffen Vogel + * SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University + * SPDX-License-Identifier: Apache-2.0 */ #include