Skip to content

Commit

Permalink
Suggested changes from PR umati#783
Browse files Browse the repository at this point in the history
  • Loading branch information
mindonwarp committed Jun 7, 2022
1 parent 41eb9c7 commit 9f21bdd
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 36 deletions.
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ BinPackArguments: false
AlignAfterOpenBracket: AlwaysBreak
ContinuationIndentWidth: 2
ConstructorInitializerIndentWidth: 2
SortIncludes: false
...
7 changes: 3 additions & 4 deletions GMS/FullGMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#include "FullGMS.hpp"

#include <string>
#include <sstream>
#include <string>
#include <unordered_map>

#include "../TypeDefinition/GMS/Constants.hpp"
#include "../TypeDefinition/GMS/GMSType.hpp"
#include "../TypeDefinition/TypeDefinition.hpp"
#include "FullGMS.hpp"

namespace {
static std::unordered_map<std::uint32_t, UmatiServerLib::LocalizedText_t> CLASS_MAP = {
Expand Down
3 changes: 1 addition & 2 deletions GMS/FullGMS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once

#include "../TypeDefinition/GMS/GMSType.hpp"

#include "InstantiatedGMS.hpp"

class FullGMS : public InstantiatedGMS {
Expand Down
6 changes: 3 additions & 3 deletions GMS/InstantiatedGMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#include "InstantiatedGMS.hpp"

#include <sstream>

#include "InstantiatedGMS.hpp"

InstantiatedGMS::InstantiatedGMS(UA_Server* pServer) : m_pServer(pServer), NsIndex(m_nsIndex), n(pServer) {}

void InstantiatedGMS::CreateObject() {
Expand Down
4 changes: 2 additions & 2 deletions GMS/InstantiatedGMS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
Expand All @@ -11,9 +11,9 @@
#include <Open62541Cpp/UA_NodeId.hpp>
#include <cstdint>

#include "../MachineTools/SimulatedInstance.hpp"
#include "../TypeDefinition/GMS/GMSType.hpp"
#include "../UmatiServerLib/NodesMaster.hpp"
#include "../MachineTools/SimulatedInstance.hpp"

class InstantiatedGMS : public SimulatedInstance {
public:
Expand Down
3 changes: 2 additions & 1 deletion TypeDefinition/GMS/GMSEquipmentType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2020-2021 (c) Christian von Arnim, ISW University of Stuttgart (for umati and VDW e.V.)
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for umati and VDMA e.V.)
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for umati and VDMA e.V.),
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
Expand Down
5 changes: 3 additions & 2 deletions TypeDefinition/GMS/GMSIdentificationType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for VDMA e.V.)
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
#include <string>

#include "../../UmatiServerLib/BindableMemberPlaceholder.hpp"
#include "../MachineTool/MachineToolIdentification.hpp"
#include "../Machinery/IMachineTagNameplate.hpp"
Expand All @@ -15,8 +18,6 @@
#include "Constants.hpp"
#include "WorkspaceType.hpp"

#include <string>

namespace GMS {

struct GMSIdentification_t : public machineTool::MachineToolIdentification_t {
Expand Down
4 changes: 2 additions & 2 deletions TypeDefinition/GMS/GMSSensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
#include <cstdint>
#include <string>
#include <vector>

#include "../TypeDefinition.hpp"
#include "../MachineTool/Tool.hpp"
#include "../TypeDefinition.hpp"
#include "../ns0/MultiStateDiscreteType.hpp"
#include "Constants.hpp"

Expand Down
5 changes: 2 additions & 3 deletions TypeDefinition/GMS/GMSToolList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once

#include "../../UmatiServerLib/BindableMemberPlaceholder.hpp"
#include "../TypeDefinition.hpp"
#include "../MachineTool/ToolList.hpp"

#include "../TypeDefinition.hpp"
#include "Constants.hpp"
#include "GMSSensor.hpp"

Expand Down
4 changes: 2 additions & 2 deletions TypeDefinition/GMS/GMSType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for VDMA e.V.)
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
#include "../MachineTool/MachineTool.hpp"
#include "../MachineTool/Monitoring.hpp"
#include "../MachineTool/Production.hpp"
#include "../TypeDefinition.hpp"

#include "Constants.hpp"
#include "GMSNotification.hpp"
#include "GMSEquipmentType.hpp"
#include "GMSIdentificationType.hpp"
#include "GMSNotification.hpp"
#include "GMSResultManagementType.hpp"

namespace GMS {
Expand Down
2 changes: 1 addition & 1 deletion TypeDefinition/GMS/WorkspaceType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/
#pragma once

Expand Down
6 changes: 3 additions & 3 deletions TypeDefinition/ns0/DataItem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
#include <string>

#include "../TypeDefinition.hpp"
#include "Constants.hpp"

#include <string>

namespace ns0 {

struct DataItem_t {
Expand Down
8 changes: 4 additions & 4 deletions TypeDefinition/ns0/DiscreteItem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
#include <string>

#include "../TypeDefinition.hpp"
#include "DataItem.hpp"
#include "Constants.hpp"

#include <string>
#include "DataItem.hpp"

namespace ns0 {

Expand Down
4 changes: 2 additions & 2 deletions TypeDefinition/ns0/MultiStateDiscreteType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2022 (c) mindonwarp
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
#include "../TypeDefinition.hpp"
#include "DiscreteItem.hpp"
#include "Constants.hpp"
#include "DiscreteItem.hpp"

namespace ns0 {

Expand Down
3 changes: 2 additions & 1 deletion UmatiServerLib/BindVariable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Copyright 2020-2021 (c) Christian von Arnim, ISW University of Stuttgart (for umati and VDW e.V.)
* Copyright 2021 (c) Christoph Ruckstetter, Michael Weinig AG
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for VDMA e.V.)
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
Expand All @@ -20,8 +21,8 @@
#include <list>

#include "../OpcUaTypes/DateTime.hpp"
#include "../OpcUaTypes/StatusCode.hpp"
#include "../OpcUaTypes/LocalizedText.hpp"
#include "../OpcUaTypes/StatusCode.hpp"
#include "BindableMemberValue.hpp"
#include "ConvertSimpleValue.hpp"
#include "ConvertStructValue.hpp"
Expand Down
4 changes: 2 additions & 2 deletions UmatiServerLib/ConvertSimpleValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
*
* Copyright 2019-2021 (c) Christian von Arnim, ISW University of Stuttgart (for umati and VDW e.V.)
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for VDMA e.V.)
* Copyright 2022 (c) Alen Galinec
*/

#include "ConvertSimpleValue.hpp"

#include <open62541/types_generated.h>

#include <Open62541Cpp/UA_String.hpp>
#include <iostream>

#include "ConvertSimpleValue.hpp"
#include "NodeValue.hpp"
#include "UaTypeHelper.hpp"

Expand Down
3 changes: 2 additions & 1 deletion UmatiServerLib/ConvertSimpleValue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Copyright 2019-2021 (c) Christian von Arnim, ISW University of Stuttgart (for umati and VDW e.V.)
* Copyright 2022 (c) Sebastian Friedl, ISW University of Stuttgart (for VDMA e.V.)
* Copyright 2022 (c) Alen Galinec
*/

#pragma once
Expand All @@ -16,8 +17,8 @@
#include <variant>

#include "../OpcUaTypes/DateTime.hpp"
#include "../OpcUaTypes/StatusCode.hpp"
#include "../OpcUaTypes/LocalizedText.hpp"
#include "../OpcUaTypes/StatusCode.hpp"
#include "NodeValue.hpp"

namespace UmatiServerLib {
Expand Down

0 comments on commit 9f21bdd

Please sign in to comment.