From 04c56bcc37bb9bbba6ef47a07c5d0a855616f0df Mon Sep 17 00:00:00 2001
From: Nathan Chambron <nathan.chambron@b-com.com>
Date: Mon, 13 Jun 2022 09:06:49 +0200
Subject: [PATCH] refactor: add licensing to file header

---
 EtsiServerGen/CMakeLists.txt               | 20 ++++++++++++++++++++
 EtsiServerImpl/CMakeLists.txt              | 20 ++++++++++++++++++++
 EtsiServerImpl/src/DefaultApiEtsi.cpp      | 20 ++++++++++++++++++++
 EtsiServerImpl/src/DefaultApiEtsi.h        | 20 ++++++++++++++++++++
 EtsiServerImpl/src/TrackableApiEtsi.cpp    | 22 +++++++++++++++++++++-
 EtsiServerImpl/src/TrackableApiEtsi.h      | 20 ++++++++++++++++++++
 EtsiServerImpl/src/WorldStorageManager.cpp | 22 +++++++++++++++++++++-
 EtsiServerImpl/src/WorldStorageManager.h   | 22 +++++++++++++++++++++-
 EtsiServerImpl/src/main.cpp                | 20 ++++++++++++++++++++
 arf005                                     |  2 +-
 package.json                               | 19 +++++++++++++++++++
 11 files changed, 203 insertions(+), 4 deletions(-)

diff --git a/EtsiServerGen/CMakeLists.txt b/EtsiServerGen/CMakeLists.txt
index 4df5eae..958369e 100644
--- a/EtsiServerGen/CMakeLists.txt
+++ b/EtsiServerGen/CMakeLists.txt
@@ -1,3 +1,23 @@
+#
+# ARF - Augmented Reality Framework (ETSI ISG ARF)
+#
+# Copyright 2022 ETSI
+#
+# 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.
+#
+# Last change: June 2022
+#
+
 cmake_minimum_required (VERSION 3.2)
 
 project(PistacheGen)
diff --git a/EtsiServerImpl/CMakeLists.txt b/EtsiServerImpl/CMakeLists.txt
index 07686b3..2d7f9b2 100644
--- a/EtsiServerImpl/CMakeLists.txt
+++ b/EtsiServerImpl/CMakeLists.txt
@@ -1,3 +1,23 @@
+#
+# ARF - Augmented Reality Framework (ETSI ISG ARF)
+#
+# Copyright 2022 ETSI
+#
+# 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.
+#
+# Last change: June 2022
+#
+
 cmake_minimum_required(VERSION 3.2)
 project(HackPistacheServ VERSION 0.1.0)
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pg -g3" )
diff --git a/EtsiServerImpl/src/DefaultApiEtsi.cpp b/EtsiServerImpl/src/DefaultApiEtsi.cpp
index 2ddac9d..a006ac6 100644
--- a/EtsiServerImpl/src/DefaultApiEtsi.cpp
+++ b/EtsiServerImpl/src/DefaultApiEtsi.cpp
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #include "DefaultApiEtsi.h"
 
 
diff --git a/EtsiServerImpl/src/DefaultApiEtsi.h b/EtsiServerImpl/src/DefaultApiEtsi.h
index cfdc4ae..a446ae2 100644
--- a/EtsiServerImpl/src/DefaultApiEtsi.h
+++ b/EtsiServerImpl/src/DefaultApiEtsi.h
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #ifndef DefaultApiEtsi_H_
 #define DefaultApiEtsi_H_
 
diff --git a/EtsiServerImpl/src/TrackableApiEtsi.cpp b/EtsiServerImpl/src/TrackableApiEtsi.cpp
index 6b85427..4c16167 100644
--- a/EtsiServerImpl/src/TrackableApiEtsi.cpp
+++ b/EtsiServerImpl/src/TrackableApiEtsi.cpp
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #include "TrackableApiEtsi.h"
 #include <boost/uuid/uuid.hpp>
 #include <boost/lexical_cast.hpp>
@@ -46,4 +66,4 @@ void TrackableApiEtsi::get_trackables(Pistache::Http::ResponseWriter &response)
     response.send(Pistache::Http::Code::Ok, jsonObjects.dump());
 }
 
-}
\ No newline at end of file
+}
diff --git a/EtsiServerImpl/src/TrackableApiEtsi.h b/EtsiServerImpl/src/TrackableApiEtsi.h
index b6f8219..d093172 100644
--- a/EtsiServerImpl/src/TrackableApiEtsi.h
+++ b/EtsiServerImpl/src/TrackableApiEtsi.h
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #ifndef TrackableApiEtsi_H_
 #define TrackableApiEtsi_H_
 
diff --git a/EtsiServerImpl/src/WorldStorageManager.cpp b/EtsiServerImpl/src/WorldStorageManager.cpp
index aa041c6..7ffa643 100644
--- a/EtsiServerImpl/src/WorldStorageManager.cpp
+++ b/EtsiServerImpl/src/WorldStorageManager.cpp
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #include "WorldStorageManager.h"
 #include <thread>
 #include <iostream>
@@ -47,4 +67,4 @@ org::openapitools::server::model::Trackable WorldStorageManager::getTrackableByI
  */
 
 WorldStorageManager* WorldStorageManager::pinstance_{nullptr};
-std::mutex WorldStorageManager::mutex_;
\ No newline at end of file
+std::mutex WorldStorageManager::mutex_;
diff --git a/EtsiServerImpl/src/WorldStorageManager.h b/EtsiServerImpl/src/WorldStorageManager.h
index f99b538..444020c 100644
--- a/EtsiServerImpl/src/WorldStorageManager.h
+++ b/EtsiServerImpl/src/WorldStorageManager.h
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #ifndef WORLDSTORAGEMANAGER_H_
 #define WORLDSTORAGEMANAGER_H_
 
@@ -55,4 +75,4 @@ public:
     org::openapitools::server::model::Trackable getTrackableById(boost::uuids::uuid trackableId);
 };
 
-#endif
\ No newline at end of file
+#endif
diff --git a/EtsiServerImpl/src/main.cpp b/EtsiServerImpl/src/main.cpp
index 609eb59..7380670 100644
--- a/EtsiServerImpl/src/main.cpp
+++ b/EtsiServerImpl/src/main.cpp
@@ -1,3 +1,23 @@
+//
+// ARF - Augmented Reality Framework (ETSI ISG ARF)
+//
+// Copyright 2022 ETSI
+//
+// 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.
+//
+// Last change: June 2022
+//
+
 #include "pistache/endpoint.h"
 #include "pistache/http.h"
 #include "pistache/router.h"
diff --git a/arf005 b/arf005
index 5da5faa..533b9d3 160000
--- a/arf005
+++ b/arf005
@@ -1 +1 @@
-Subproject commit 5da5faa719bcb310bc57ae97168e582218d1355c
+Subproject commit 533b9d3198b772c7b628b0ab0e0a144b89966b46
diff --git a/package.json b/package.json
index 413e57a..dd60ec8 100644
--- a/package.json
+++ b/package.json
@@ -1,4 +1,23 @@
 {
+  "//": [
+	"ARF - Augmented Reality Framework (ETSI ISG ARF)",
+
+	"Copyright 2022 ETSI",
+
+	"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.",
+
+	"Last change: June 2022"
+	],
   "name": "worldstorageserver",
   "version": "0.0.1",
   "description": "ISG ARF World Storage Cpp Server",
-- 
GitLab