-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
organise nested Struct members in new Struct Action Info
- Loading branch information
1 parent
09d7712
commit 25d5fb0
Showing
4 changed files
with
72 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Primetals Technologies Austria GmbH | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Alois Zoitl - initial implementation | ||
*******************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "opcua_action_info.h" | ||
#include "opcua_layer.h" | ||
#include "opcua_objectstruct_helper.h" | ||
|
||
class CStructMemberActionInfo : public CActionInfo { | ||
public: | ||
|
||
explicit CStructMemberActionInfo(COPC_UA_ObjectStruct_Helper &paStructHelper, COPC_UA_Layer &paLayer, UA_ActionType paAction, const std::string &paEndpoint): | ||
CActionInfo(paLayer, paAction, paEndpoint), mStructHelper(paStructHelper){ | ||
} | ||
|
||
const CIEC_ANY *const *getDataToSend() override { | ||
mMemberArr[0] = mStructHelper.getStructMember(*this, true); | ||
return mMemberArr; | ||
} | ||
|
||
private: | ||
CIEC_ANY const* mMemberArr[1]; | ||
|
||
COPC_UA_ObjectStruct_Helper &mStructHelper; | ||
}; |