text: /* -----------------------------------------------------------------------------------------------------------------
                                          COPYRIGHT (c) 2009 - 2017
                                           HONEYWELL INC.,
                                          ALL RIGHTS RESERVED
  
              This software is a copyrighted work and/or information protected as a trade
              secret. Legal rights of Honeywell Inc. in this software are distinct from
              ownership of any medium in which the software is embodied. Copyright or trade
              secret notices included must be reproduced in any copies authorized by
              Honeywell Inc. The information in this software is subject to change without
              notice and should not be considered as a commitment by Honeywell Inc.
  ----------------------------------------------------------------------------------------------------------------- */
  
  #ifndef _OPCUA_ADD_NODES_REQUEST_T_
  #define _OPCUA_ADD_NODES_REQUEST_T_
  
  
  #include "opcua_request_message_t.h"
  #include "opcua_add_nodes_item_t.h"
  #include "opcua_array_ua_t.h"
  
  #if (UASDK_INCLUDE_NODE_MANAGEMENT_SERVICE_SET > 0)
  
  namespace uasdk
  {
  
  class AddNodesRequest_t : public RequestMessage_t
  {
  private:
  	ArrayUA_t<AddNodesItem_t> nodesToAdd;
  
  	AddNodesRequest_t& operator=(AddNodesRequest_t const &);
  	AddNodesRequest_t(AddNodesRequest_t const &);
  
  public:
    static const uint32_t TYPE_ID = OpcUaId_AddNodesRequest;
  
    AddNodesRequest_t(){}
    virtual ~AddNodesRequest_t(){}
  
    uint32_t TypeId(uint16_t& namespaceIndex) const
    {
      namespaceIndex = 0; return TYPE_ID;
    }
  
    uint32_t BinaryEncodingId(uint16_t& namespaceIndex) const
    {
      namespaceIndex = 0; return OpcUaId_AddNodesRequest_Encoding_DefaultBinary;
    }
  
    const ArrayUA_t<AddNodesItem_t>& NodesToAdd() const;
  
    ArrayUA_t<AddNodesItem_t>& NodesToAdd();
  
    virtual Status_t EncodeBody(ICodec_t& encoder, IBuffer_t& buffer) const;
    static Status_t Decode(const IBuffer_t& buffer, ICodec_t& decoder, AddNodesRequest_t& result);
  
  };
  
  } // namespace uasdk
  
  #endif
  
  #endif // _OPCUA_ADD_NODES_REQUEST_T_
  