diff --git a/CMakeLists.txt b/CMakeLists.txt index 69ce8da..bfceb51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,12 +312,12 @@ endif() # x64 only # Output: OpcTestServer_x86.exe or OpcTestServer_x64.exe # ============================================================================ -set(TESTSVR_SRC_DIR "${CMAKE_SOURCE_DIR}/Source/Common/TestServer") +set(TESTSVR_SRC_DIR "${CMAKE_SOURCE_DIR}/Source/Test/TestServer") set(TESTSVR_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}/OpcTestServer") set(OPC_UTILS_DIR "${CMAKE_SOURCE_DIR}/Source/Shared/OpcUtilityClasses") -set(SAMPLE_SVR_DIR "${CMAKE_SOURCE_DIR}/Source/Common/SampleServerClasses") -set(SAMPLE_DEV_DIR "${CMAKE_SOURCE_DIR}/Source/Common/SampleDevice") -set(SAMPLE_205_DIR "${CMAKE_SOURCE_DIR}/Source/Common/SampleServer205") +set(SAMPLE_SVR_DIR "${CMAKE_SOURCE_DIR}/Source/Shared/SampleServerClasses") +set(SAMPLE_DEV_DIR "${CMAKE_SOURCE_DIR}/Source/Shared/SampleDevice") +set(SAMPLE_205_DIR "${CMAKE_SOURCE_DIR}/Source/Shared/SampleServer205") file(MAKE_DIRECTORY "${TESTSVR_BIN_DIR}") # Determine platform tag and MIDL environment @@ -446,7 +446,7 @@ install(FILES "${TESTSVR_SRC_DIR}/OpcTestServer.config.xml" # ============================================================================ add_executable(OpcTestClient - "${CMAKE_SOURCE_DIR}/Source/Common/TestClient/OpcTestClient.cpp" + "${CMAKE_SOURCE_DIR}/Source/Test/TestClient/OpcTestClient.cpp" ) add_dependencies(OpcTestClient opccomn_ps_generate opcproxy_generate) diff --git a/Source/AlarmsAndEvents/ProxyStub/opc_ae.idl b/Source/AlarmsAndEvents/ProxyStub/opc_ae.idl index d9a48ea..4fec60e 100644 --- a/Source/AlarmsAndEvents/ProxyStub/opc_ae.idl +++ b/Source/AlarmsAndEvents/ProxyStub/opc_ae.idl @@ -1,29 +1,31 @@ -//============================================================================== -// TITLE: opc_ae.idl -// -// CONTENTS: -// -// Interface declarations for the OPC Alarms & Event specifications. -// -// (c) Copyright 1997-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/10/02 JL Updated for Version 1.1. -// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. -// 2004/09/01 RSA Renamed modules in TYPELIB section to avoid name conflicts. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "oaidl.idl"; import "ocidl.idl"; diff --git a/Source/AlarmsAndEvents/ProxyStub/opcae_er.h b/Source/AlarmsAndEvents/ProxyStub/opcae_er.h index f395741..bce9682 100644 --- a/Source/AlarmsAndEvents/ProxyStub/opcae_er.h +++ b/Source/AlarmsAndEvents/ProxyStub/opcae_er.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: opcae_er.h -// -// CONTENTS: -// -// Defines error codes for the OPC Alarms & Events specification. -// -// (c) Copyright 1997-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/10/02 JL Updated for Version 1.1. -// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCAE_ER_H #define __OPCAE_ER_H diff --git a/Source/AlarmsAndEvents/ProxyStub/opcae_er.mc b/Source/AlarmsAndEvents/ProxyStub/opcae_er.mc index eac083a..19ce349 100644 --- a/Source/AlarmsAndEvents/ProxyStub/opcae_er.mc +++ b/Source/AlarmsAndEvents/ProxyStub/opcae_er.mc @@ -1,28 +1,31 @@ -;//============================================================================== -;// TITLE: opcae_er.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the OPC Alarms & Events specification. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 1997-2003 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 2002/10/02 JL Updated for Version 1.1. -;// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT diff --git a/Source/AlarmsAndEvents/ProxyStub/opcaedef.h b/Source/AlarmsAndEvents/ProxyStub/opcaedef.h index 62a3db4..fcf0308 100644 --- a/Source/AlarmsAndEvents/ProxyStub/opcaedef.h +++ b/Source/AlarmsAndEvents/ProxyStub/opcaedef.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: opcaedef.h -// -// CONTENTS: -// -// Defines constants for the OPC Alarms & Events specification. -// -// (c) Copyright 1997-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/10/02 JL Updated for Version 1.1. -// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCAEDEF_H #define __OPCAEDEF_H diff --git a/Source/AlarmsAndEvents/ProxyStub/resource.h b/Source/AlarmsAndEvents/ProxyStub/resource.h index 2969b81..cad011b 100644 --- a/Source/AlarmsAndEvents/ProxyStub/resource.h +++ b/Source/AlarmsAndEvents/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by opc_ae.rc diff --git a/Source/Batch/ProxyStub/OpcBatchDef.h b/Source/Batch/ProxyStub/OpcBatchDef.h index 1068031..62e8883 100644 --- a/Source/Batch/ProxyStub/OpcBatchDef.h +++ b/Source/Batch/ProxyStub/OpcBatchDef.h @@ -1,29 +1,31 @@ -//============================================================================== -// TITLE: OpcBatchDef.h -// -// CONTENTS: -// -// Defines constants for the Batch specifications. -// -// (c) Copyright 2000-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/01/17 OPC Created. -// 2001/01/23 OPC Added Version 2.0 properties. -// 2003/01/06 RSA Updated formatting. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCBATCHDEF_H #define __OPCBATCHDEF_H diff --git a/Source/Batch/ProxyStub/OpcBatchError.h b/Source/Batch/ProxyStub/OpcBatchError.h index 89a87bc..b05da0b 100644 --- a/Source/Batch/ProxyStub/OpcBatchError.h +++ b/Source/Batch/ProxyStub/OpcBatchError.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: OpcBatchError.h -// -// CONTENTS: -// -// Defines error codes for the Batch specifications. -// -// (c) Copyright 2000-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/01/17 OPC Created. -// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCBATCHERROR_H #define __OPCBATCHERROR_H diff --git a/Source/Batch/ProxyStub/OpcBatchError.mc b/Source/Batch/ProxyStub/OpcBatchError.mc index f9313bc..06e54b7 100644 --- a/Source/Batch/ProxyStub/OpcBatchError.mc +++ b/Source/Batch/ProxyStub/OpcBatchError.mc @@ -1,28 +1,31 @@ -;//============================================================================== -;// TITLE: OpcBatchError.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the Batch specifications. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 2000-2003 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 2000/01/17 OPC Created. -;// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT diff --git a/Source/Batch/ProxyStub/OpcBatchProps.h b/Source/Batch/ProxyStub/OpcBatchProps.h index 372b6b2..a2e95f0 100644 --- a/Source/Batch/ProxyStub/OpcBatchProps.h +++ b/Source/Batch/ProxyStub/OpcBatchProps.h @@ -1,29 +1,31 @@ -//============================================================================== -// TITLE: OpcBatchProps.h -// -// CONTENTS: -// -// Defines property IDs for the Batch specifications. -// -// (c) Copyright 2000-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/01/17 OPC Created. -// 2001/01/23 OPC Added Version 2.0 properties. -// 2003/01/06 RSA Updated formatting. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCBATCHPROPS_H #define __OPCBATCHPROPS_H @@ -109,4 +111,4 @@ #define OPC_PROP_B_TRAIN_LIST2 477 #define OPC_PROP_B_TRAIN_LIST2_SCHEMA 478 -#endif // __OPCBATCHPROPS_H \ No newline at end of file +#endif // __OPCBATCHPROPS_H diff --git a/Source/Batch/ProxyStub/opcbc.idl b/Source/Batch/ProxyStub/opcbc.idl index eb87ab8..4d4701a 100644 --- a/Source/Batch/ProxyStub/opcbc.idl +++ b/Source/Batch/ProxyStub/opcbc.idl @@ -1,29 +1,31 @@ -//============================================================================== -// TITLE: opcbc.idl -// -// CONTENTS: -// -// Interface declarations for the OPC Batch specifications. -// -// (c) Copyright 1999-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/11/02 OPC Made revisions for version 2.0. -// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. -// 2004/09/01 RSA Renamed modules in TYPELIB section to avoid name conflicts. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "oaidl.idl"; diff --git a/Source/Batch/ProxyStub/resource.h b/Source/Batch/ProxyStub/resource.h index e7c1048..3d0b33f 100644 --- a/Source/Batch/ProxyStub/resource.h +++ b/Source/Batch/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by opcbc_ps.rc diff --git a/Source/Commands/ProxyStub/OpcCmd.idl b/Source/Commands/ProxyStub/OpcCmd.idl index ff1bc0e..ec664b2 100644 --- a/Source/Commands/ProxyStub/OpcCmd.idl +++ b/Source/Commands/ProxyStub/OpcCmd.idl @@ -1,26 +1,31 @@ -//================================================================================ -// TITLE: OpcCmd.idl -// -// CONTENTS: -// -// The OPC Comamnds 1.00 IDL file. -//// -// (c) Copyright 2004 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2004/03/22 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "oaidl.idl"; import "ocidl.idl"; @@ -340,4 +345,4 @@ library OpcCmdLib const LPCWSTR OPCCMD_CONTROL_RESUME = L"Resume"; const LPCWSTR OPCCMD_CONTROL_CANCEL = L"Cancel"; } -} \ No newline at end of file +} diff --git a/Source/Commands/ProxyStub/OpcCmdError.h b/Source/Commands/ProxyStub/OpcCmdError.h index 25ee0f1..ed6613b 100644 --- a/Source/Commands/ProxyStub/OpcCmdError.h +++ b/Source/Commands/ProxyStub/OpcCmdError.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcCmdError.h -// -// CONTENTS: -// -// Defines error codes for the OPC Command Execution specification. -// -// (c) Copyright 2004 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/12/12 RSA Created. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcCmdError_H_ #define _OpcCmdError_H_ diff --git a/Source/Commands/ProxyStub/OpcCmdError.mc b/Source/Commands/ProxyStub/OpcCmdError.mc index 063f3ed..3241e0c 100644 --- a/Source/Commands/ProxyStub/OpcCmdError.mc +++ b/Source/Commands/ProxyStub/OpcCmdError.mc @@ -1,27 +1,31 @@ -;//============================================================================== -;// TITLE: OpcCmdError.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the OPC Command Execution specification. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 2004 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 2002/12/12 RSA Created. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT diff --git a/Source/Commands/ProxyStub/resource.h b/Source/Commands/ProxyStub/resource.h index a38ee5d..4fadd83 100644 --- a/Source/Commands/ProxyStub/resource.h +++ b/Source/Commands/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by OpcCmdPs.rc diff --git a/Source/Common/CategoryManager/CCategoryManager.cpp b/Source/Common/CategoryManager/CCategoryManager.cpp index 2b4e3b9..9910c99 100644 --- a/Source/Common/CategoryManager/CCategoryManager.cpp +++ b/Source/Common/CategoryManager/CCategoryManager.cpp @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 * diff --git a/Source/Common/CategoryManager/CCategoryManager.h b/Source/Common/CategoryManager/CCategoryManager.h index a7337d0..fe095ce 100644 --- a/Source/Common/CategoryManager/CCategoryManager.h +++ b/Source/Common/CategoryManager/CCategoryManager.h @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 * diff --git a/Source/Common/CategoryManager/CategoryManager.cpp b/Source/Common/CategoryManager/CategoryManager.cpp index 5a2afb9..36b8998 100644 --- a/Source/Common/CategoryManager/CategoryManager.cpp +++ b/Source/Common/CategoryManager/CategoryManager.cpp @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 * diff --git a/Source/Common/CategoryManager/CategoryManager.idl b/Source/Common/CategoryManager/CategoryManager.idl index 6f3e7b5..6479f9f 100644 --- a/Source/Common/CategoryManager/CategoryManager.idl +++ b/Source/Common/CategoryManager/CategoryManager.idl @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + import "opccomn.idl"; [ diff --git a/Source/Common/CategoryManager/StdAfx.cpp b/Source/Common/CategoryManager/StdAfx.cpp index 00468c6..bcc9e02 100644 --- a/Source/Common/CategoryManager/StdAfx.cpp +++ b/Source/Common/CategoryManager/StdAfx.cpp @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 * diff --git a/Source/Common/CategoryManager/StdAfx.h b/Source/Common/CategoryManager/StdAfx.h index 285994b..067e985 100644 --- a/Source/Common/CategoryManager/StdAfx.h +++ b/Source/Common/CategoryManager/StdAfx.h @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 * diff --git a/Source/Common/CategoryManager/resource.h b/Source/Common/CategoryManager/resource.h index b02f807..1da4075 100644 --- a/Source/Common/CategoryManager/resource.h +++ b/Source/Common/CategoryManager/resource.h @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 * diff --git a/Source/Common/ProxyStub/opccomn.idl b/Source/Common/ProxyStub/opccomn.idl index 2a1cffe..6c884fe 100644 --- a/Source/Common/ProxyStub/opccomn.idl +++ b/Source/Common/ProxyStub/opccomn.idl @@ -1,32 +1,31 @@ -//============================================================================== -// TITLE: OpcComn.idl -// -// CONTENTS: -// -// Interface declarations for the OPC Common specification. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 1998/04/09 acc import unknwn.idl rather than oaidl.idl -// 1998/06/15 acc add 'library' object at end to allow typelib generation -// 1998/06/19 acc change V2 uuids prior to final release -// to avoid conflict with 'old' OPCDA Automation uuids -// 1998/09/18 acc add OPCServerList IDL (with help from Gary Klassen) -// 2002/08/21 rsa Added asynchrounous UUIDs. Fixed formatting. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "comcat.idl"; import "oaidl.idl"; diff --git a/Source/Common/ProxyStub/resource.h b/Source/Common/ProxyStub/resource.h index 9a6a4b3..78848ae 100644 --- a/Source/Common/ProxyStub/resource.h +++ b/Source/Common/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by opccomn_ps.rc diff --git a/Source/Common/SampleDevice/StdAfx.cpp b/Source/Common/SampleDevice/StdAfx.cpp deleted file mode 100644 index dd0dbce..0000000 --- a/Source/Common/SampleDevice/StdAfx.cpp +++ /dev/null @@ -1,26 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.cpp -// -// CONTENTS: -// -// This file includes StdAfx.h and is used to create the pre-compiled headers. -// -// (c) Copyright 2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/09/09 RSA First release. -// - -#include "StdAfx.h" \ No newline at end of file diff --git a/Source/Common/SampleDevice/StdAfx.h b/Source/Common/SampleDevice/StdAfx.h deleted file mode 100644 index 21afd2e..0000000 --- a/Source/Common/SampleDevice/StdAfx.h +++ /dev/null @@ -1,48 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.h -// -// CONTENTS: -// -// This file standard precompiled include files. -// -// (c) Copyright 2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/09/09 RSA First release. -// - -#ifndef _StdAfx_H -#define _StdAfx_H - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -// Insert your headers here -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -#include -#include -#include -#include -#include -#include - -#include "OpcUtils.h" - -#include "opcda.h" -#include "opcerror.h" - -#endif // _StdAfx_H diff --git a/Source/Common/SampleServer205/COpcDa20Cache.h b/Source/Common/SampleServer205/COpcDa20Cache.h deleted file mode 100644 index d61eb6b..0000000 --- a/Source/Common/SampleServer205/COpcDa20Cache.h +++ /dev/null @@ -1,85 +0,0 @@ -//============================================================================== -// TITLE: COpcDa20Cache.h -// -// CONTENTS: -// -// A concrete instance of a OPC Data Server cache. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#ifndef _COpcDaEngine_H_ -#define _COpcDaEngine_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "COpcDaCache.h" -#include "COpcDaDevice.h" - -//============================================================================== -// CLASS: COpcDaCache -// PURPOSE: A concrete instance of a OPC Data Server cache. - -class COpcDa20Cache : public COpcDaCache -{ - OPC_CLASS_NEW_DELETE() - -public: - - //========================================================================== - // Public Operators - - // Constructor - COpcDa20Cache(COpcDaDevice& cDevice) : m_cDevice(cDevice) {} - - // Destructor - ~COpcDa20Cache() {} - - //========================================================================= - // Public Methods - - // Start - virtual bool Start(); - - // Stop - virtual void Stop(); - - // Load - virtual bool Load(COpcXmlElement& cRoot); - -private: - - //========================================================================== - // Private Members - - COpcDaDevice& m_cDevice; -}; - - -//============================================================================== -// Global Functions - -// Initialize -extern bool Initialize(); - -// Uninitialize -extern void Uninitialize(); - -#endif // _COpcDaEngine_H_ \ No newline at end of file diff --git a/Source/Common/SampleServer205/COpcDa20Group.h b/Source/Common/SampleServer205/COpcDa20Group.h deleted file mode 100644 index 43a0f8a..0000000 --- a/Source/Common/SampleServer205/COpcDa20Group.h +++ /dev/null @@ -1,65 +0,0 @@ -//============================================================================ -// TITLE: COpcDa20Group.h -// -// CONTENTS: -// -// A group object for an OPC Data Access server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/05/13 RSA First release. -// - -#ifndef _COpcDa20Group_H_ -#define _COpcDa20Group_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "COpcDaGroup.h" - -//============================================================================ -// CLASS: COpcDa20Group -// PURPOSE: A class that implements the IOPCServer interface. -// NOTES: - -class COpcDa20Group : public COpcDaGroup -{ - OPC_CLASS_NEW_DELETE() - - OPC_BEGIN_INTERFACE_TABLE(COpcDa20Group) - OPC_INTERFACE_ENTRY(IConnectionPointContainer) - OPC_INTERFACE_ENTRY(IOPCItemMgt) - OPC_INTERFACE_ENTRY(IOPCSyncIO) - OPC_INTERFACE_ENTRY(IOPCAsyncIO2) - OPC_INTERFACE_ENTRY(IOPCGroupStateMgt) - OPC_END_INTERFACE_TABLE() - -public: - - //========================================================================= - // Operators - - // Constructor - COpcDa20Group() {} - COpcDa20Group(COpcDaServer& cServer, const COpcString& cName) : COpcDaGroup(cServer, cName) {} - - // Destructor - ~COpcDa20Group() { Clear(); } -}; - -#endif // _COpcDa20Group_H_ \ No newline at end of file diff --git a/Source/Common/SampleServer205/COpcDa20Server.cpp b/Source/Common/SampleServer205/COpcDa20Server.cpp deleted file mode 100644 index 11ab96a..0000000 --- a/Source/Common/SampleServer205/COpcDa20Server.cpp +++ /dev/null @@ -1,50 +0,0 @@ -//============================================================================== -// TITLE: COpcDa20Server.cpp -// -// CONTENTS: -// -// The implements the OPC remote server activator. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#include "StdAfx.h" -#include "COpcDa20Server.h" -#include "COpcDa20Cache.h" - -//============================================================================== -// COpcDa20Server - -// FinalConstruct -HRESULT COpcDa20Server::FinalConstruct() -{ - if (!Initialize()) - { - return E_FAIL; - } - - return COpcDaServer::FinalConstruct(); -} - -// FinalRelease -bool COpcDa20Server::FinalRelease() -{ - COpcDaServer::FinalRelease(); - Uninitialize(); - return true; -} diff --git a/Source/Common/SampleServer205/COpcDa20Server.h b/Source/Common/SampleServer205/COpcDa20Server.h deleted file mode 100644 index 6f67c42..0000000 --- a/Source/Common/SampleServer205/COpcDa20Server.h +++ /dev/null @@ -1,82 +0,0 @@ -//============================================================================ -// TITLE: COpcDa20Server.h -// -// CONTENTS: -// -// A concrete instance of a OPC Data Server object. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#ifndef _COpcDa20Server_H_ -#define _COpcDa20Server_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "COpcDaServer.h" - -#include "OpcDa20Server.h" -#include "COpcDa20Group.h" - -//============================================================================ -// CLASS: COpcDa20Server -// PURPOSE: A class that implements the IOPCServer interface. - -class COpcDa20Server : - public COpcComObject, - public COpcDaServer -{ - OPC_CLASS_NEW_DELETE() - - OPC_BEGIN_INTERFACE_TABLE(COpcDa20Server) - OPC_INTERFACE_ENTRY(IOPCCommon) - OPC_INTERFACE_ENTRY(IConnectionPointContainer) - OPC_INTERFACE_ENTRY(IOPCServer) - OPC_INTERFACE_ENTRY(IOPCBrowseServerAddressSpace) - OPC_INTERFACE_ENTRY(IOPCItemProperties) - OPC_INTERFACE_ENTRY(IOPCSecurityNT) - OPC_INTERFACE_ENTRY(IOPCSecurityPrivate) - OPC_END_INTERFACE_TABLE() - -public: - - //========================================================================== - // Operators - - // Constructor - COpcDa20Server() {} - - // Destructor - ~COpcDa20Server() {} - - //========================================================================= - // Public Methods - - // FinalConstruct - virtual HRESULT FinalConstruct(); - - // FinalRelease - virtual bool FinalRelease(); - - // CreateGroup - virtual COpcDaGroup* CreateGroup(COpcDaServer& cServer, const COpcString& cName) { return new COpcDa20Group(cServer, cName); } -}; - -#endif // _COpcDa20Server_H_ \ No newline at end of file diff --git a/Source/Common/SampleServer205/OpcDa20Server.cpp b/Source/Common/SampleServer205/OpcDa20Server.cpp deleted file mode 100644 index 964252c..0000000 --- a/Source/Common/SampleServer205/OpcDa20Server.cpp +++ /dev/null @@ -1,79 +0,0 @@ -//============================================================================== -// TITLE: OpcDa20Server.cpp -// -// CONTENTS: -// -// Implements the required COM server functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#include "StdAfx.h" -#include "COpcDa20Server.h" -#pragma warning(disable:4192) - -//================================================================================ -// COM Module Declarations - -OPC_DECLARE_APPLICATION(OPCSample, OpcDa20Server, "OPC Data Access 2.05a Sample Server") - -OPC_BEGIN_CLASS_TABLE() - OPC_CLASS_TABLE_ENTRY(COpcDa20Server, OpcDa20Server, 1, "OPC Data Access 2.05a Source Server") -OPC_END_CLASS_TABLE() - -OPC_BEGIN_CATEGORY_TABLE() - OPC_CATEGORY_TABLE_ENTRY(OpcDa20Server, CATID_OPCDAServer20, OPC_CATEGORY_DESCRIPTION_DA20) -OPC_END_CATEGORY_TABLE() - -#ifndef _USRDLL - -// {725536FD-452C-44a1-97FE-490AC0F14AD5} -OPC_IMPLEMENT_LOCAL_SERVER(0x725536fd, 0x452c, 0x44a1, 0x97, 0xfe, 0x49, 0xa, 0xc0, 0xf1, 0x4a, 0xd5); - -//================================================================================ -// WinMain - -extern "C" int WINAPI _tWinMain( - HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nShowCmd -) -{ - OPC_START_LOCAL_SERVER_EX(hInstance, lpCmdLine); - return 0; -} - -#else - -OPC_IMPLEMENT_INPROC_SERVER(); - -//============================================================================== -// DllMain - -extern "C" -BOOL WINAPI DllMain( - HINSTANCE hModule, - DWORD dwReason, - LPVOID lpReserved) -{ - OPC_START_INPROC_SERVER(hModule, dwReason); - return TRUE; -} - -#endif // _USRDLL diff --git a/Source/Common/SampleServer205/OpcDa20Server.idl b/Source/Common/SampleServer205/OpcDa20Server.idl deleted file mode 100644 index c1d9d39..0000000 --- a/Source/Common/SampleServer205/OpcDa20Server.idl +++ /dev/null @@ -1,47 +0,0 @@ -//============================================================================ -// TITLE: OpcDa20Server.idl -// -// CONTENTS: -// -// The OPC Data Access Sample Server IDL file. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// - -import "opccomn.idl"; -import "opcda.idl"; - -[ - uuid(B028E06D-8C76-4f93-B12A-A3686CBB1E12), - version(1.0) -] -library OpcDa20ServerLib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); - - [ - uuid(B028E06E-8C76-4f93-B12A-A3686CBB1E12), - helpstring("OPC Data Access 2.05a Source Server") - ] - coclass OpcDa20Server - { - [default] interface IOPCServer; - [source] interface IOPCShutdown; - }; -}; diff --git a/Source/Common/SampleServer205/StdAfx.cpp b/Source/Common/SampleServer205/StdAfx.cpp deleted file mode 100644 index fa5752f..0000000 --- a/Source/Common/SampleServer205/StdAfx.cpp +++ /dev/null @@ -1,29 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.cpp -// -// CONTENTS: -// -// This file includes StdAfx.h and is used to create the pre-compiled headers. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#include "StdAfx.h" - -#include "opccomn_i.c" -#include "opcda_i.c" diff --git a/Source/Common/SampleServer205/StdAfx.h b/Source/Common/SampleServer205/StdAfx.h deleted file mode 100644 index 226e212..0000000 --- a/Source/Common/SampleServer205/StdAfx.h +++ /dev/null @@ -1,45 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.h -// -// CONTENTS: -// -// This file standard precompiled include files. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#ifndef _StdAfx_H -#define _StdAfx_H - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -// Insert your headers here -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -#include -#include -#include -#include -#include -#include - -#include "OpcUtils.h" - -#endif // _StdAfx_H diff --git a/Source/Common/SampleServerClasses/COpcDaBrowseElement.h b/Source/Common/SampleServerClasses/COpcDaBrowseElement.h deleted file mode 100644 index 8672a57..0000000 --- a/Source/Common/SampleServerClasses/COpcDaBrowseElement.h +++ /dev/null @@ -1,72 +0,0 @@ -//============================================================================ -// TITLE: COpcDaBrowseElement.h -// -// CONTENTS: -// -// A single element in the OPC server namespace. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// - -#ifndef _COpcDaBrowseElement_H_ -#define _COpcDaBrowseElement_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -//============================================================================ -// CLASS: COpcDaBrowseElement -// PURPOSE: Describes an element in the server namespace. - -class COpcDaBrowseElement : public COpcBrowseElement -{ - OPC_CLASS_NEW_DELETE() - -public: - - //======================================================================== - // Public Operators - - // Constructor - COpcDaBrowseElement(COpcDaBrowseElement* pParent); - - // Destructor - ~COpcDaBrowseElement() { Clear(); } - - //======================================================================== - // Public Methods - - // Browse - void Browse( - OPCBROWSETYPE eType, - const COpcString& cPath, - COpcStringList& cNodes - ); - -protected: - - //======================================================================== - // Protected Methods - - // CreateInstance - virtual COpcBrowseElement* CreateInstance(); -}; - -#endif // _COpcDaBrowseElement_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaUpdateThread.h b/Source/Common/SampleServerClasses/COpcDaUpdateThread.h deleted file mode 100644 index 762591a..0000000 --- a/Source/Common/SampleServerClasses/COpcDaUpdateThread.h +++ /dev/null @@ -1,84 +0,0 @@ -//============================================================================ -// TITLE: COpcDaUpdateThread.h -// -// CONTENTS: -// -// Periodically updates all registered (a.k.a active) groups. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/12/03 RSA First release. -// - -#ifndef _COpcDaUpdateThread_H_ -#define _COpcDaUpdateThread_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -class COpcDaGroup; - -#define MAX_UPDATE_RATE 100 - -//============================================================================ -// CLASS: COpcDaUpdateThread -// PURPOSE: Maintains an in memory cache of DA items. - -class COpcDaUpdateThread : public COpcSynchObject -{ - OPC_CLASS_NEW_DELETE() - -public: - - //======================================================================== - // Public Operators - - // Constructor - COpcDaUpdateThread(); - - // Destructor - ~COpcDaUpdateThread(); - - //========================================================================= - // Public Methods - - // Start - bool Start(); - - // Stop - void Stop(); - - // Update - void Run(); - - // Register - void Register(COpcDaGroup* pGroup); - - // Unregister - void Unregister(COpcDaGroup* pGroup); - -private: - - //======================================================================== - // Private Members - - DWORD m_dwID; - HANDLE m_hEvent; - COpcList m_cGroups; -}; - -#endif // _COpcDaUpdateThread_H_ \ No newline at end of file diff --git a/Source/Common/SampleServerClasses/COpcDaWriteThread.h b/Source/Common/SampleServerClasses/COpcDaWriteThread.h deleted file mode 100644 index 2c04ae5..0000000 --- a/Source/Common/SampleServerClasses/COpcDaWriteThread.h +++ /dev/null @@ -1,77 +0,0 @@ -//============================================================================ -// TITLE: COpcDaWriteThread.h -// -// CONTENTS: -// -// A thread that serializes asynchronous write requests. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/06/20 RSA Initial implementation. - -#ifndef _COpcDaWriteThread_H_ -#define _COpcDaWriteThread_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "COpcDaTransaction.h" - -//============================================================================ -// CLASS: COpcDaWriteThread -// PURPOSE: Maintains an in memory cache of DA items. - -class COpcDaWriteThread : public COpcSynchObject -{ - OPC_CLASS_NEW_DELETE() - -public: - - //======================================================================== - // Public Operators - - // Constructor - COpcDaWriteThread(); - - // Destructor - ~COpcDaWriteThread(); - - //========================================================================= - // Public Methods - - // Start - bool Start(); - - // Stop - void Stop(); - - // Run - void Run(); - - // QueueTransaction - bool QueueTransaction(COpcDaTransaction* pTransaction); - -private: - - //======================================================================== - // Private Members - - DWORD m_dwID; - HANDLE m_hEvent; -}; - -#endif // _COpcDaWriteThread_H_ \ No newline at end of file diff --git a/Source/Common/SampleServerClasses/OpcDaHelpers.h b/Source/Common/SampleServerClasses/OpcDaHelpers.h deleted file mode 100644 index 1995ed1..0000000 --- a/Source/Common/SampleServerClasses/OpcDaHelpers.h +++ /dev/null @@ -1,75 +0,0 @@ -//============================================================================== -// TITLE: OpcDaHelpers.h -// -// CONTENTS: -// -// XML/Text conversion helper functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/06/25 RSA Added OpcDaGetModuleVersion(). - -#ifndef _OpcDaHelpers_H -#define _OpcDaHelpers_H - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "OpcUtils.h" -#include "OpcXmlType.h" - -// OpcDaGetModuleName -COpcString OpcDaGetModuleName(); - -// OpcDaGetModulePath -COpcString OpcDaGetModulePath(); - -// OpcDaVersionInfo -struct OpcDaVersionInfo -{ - COpcString cFileDescription; - WORD wMajorVersion; - WORD wMinorVersion; - WORD wBuildNumber; - WORD wRevisionNumber; - - // Constructor - OpcDaVersionInfo() - { - wMajorVersion = 0; - wMinorVersion = 0; - wBuildNumber = 0; - wRevisionNumber = 0; - } - - // Copy Constructor - OpcDaVersionInfo(const OpcDaVersionInfo& cInfo) - { - cFileDescription = cInfo.cFileDescription; - wMajorVersion = cInfo.wMajorVersion; - wMinorVersion = cInfo.wMinorVersion; - wBuildNumber = cInfo.wBuildNumber; - wRevisionNumber = cInfo.wRevisionNumber; - } -}; - -// OpcDaGetModuleVersion -bool OpcDaGetModuleVersion(OpcDaVersionInfo& cInfo); - -#endif // _OpcDaHelpers_H \ No newline at end of file diff --git a/Source/Common/SampleServerClasses/StdAfx.cpp b/Source/Common/SampleServerClasses/StdAfx.cpp deleted file mode 100644 index f89c63f..0000000 --- a/Source/Common/SampleServerClasses/StdAfx.cpp +++ /dev/null @@ -1,29 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.cpp -// -// CONTENTS: -// -// This file includes StdAfx.h and is used to create the pre-compiled headers. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// - -#include "StdAfx.h" - -#include "opcda_i.c" -#include "opcsec_i.c" \ No newline at end of file diff --git a/Source/Common/SampleServerClasses/StdAfx.h b/Source/Common/SampleServerClasses/StdAfx.h deleted file mode 100644 index ad82533..0000000 --- a/Source/Common/SampleServerClasses/StdAfx.h +++ /dev/null @@ -1,49 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.h -// -// CONTENTS: -// -// This file standard precompiled include files. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// - -#ifndef _OpcDa_StdAfx_H -#define _OpcDa_StdAfx_H - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -// Insert your headers here -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -#include -#include -#include -#include -#include -#include - -#include "OpcUtils.h" - -#include "opcda.h" -#include "opcerror.h" -#include "opcsec.h" - -#endif // _OpcDa_StdAfx_H diff --git a/Source/Common/SampleServerClasses/resource.h b/Source/Common/SampleServerClasses/resource.h deleted file mode 100644 index baad4e1..0000000 --- a/Source/Common/SampleServerClasses/resource.h +++ /dev/null @@ -1,29 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Developer Studio generated include file. -// Used by OpcDaServer.rc -// -#define IDC_MYICON 2 -#define IDD_OPCDASERVER_DIALOG 102 -#define IDD_ABOUTBOX 103 -#define IDS_APP_TITLE 103 -#define IDM_ABOUT 104 -#define IDM_EXIT 105 -#define IDS_HELLO 106 -#define IDI_OPCDASERVER 107 -#define IDI_SMALL 108 -#define IDC_OPCDASERVER 109 -#define IDS_E_FAIL 110 -#define IDR_MAINFRAME 128 -#define IDR_TYPELIB1 129 -#define IDC_STATIC -1 - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 130 -#define _APS_NEXT_COMMAND_VALUE 32771 -#define _APS_NEXT_CONTROL_VALUE 1000 -#define _APS_NEXT_SYMED_VALUE 110 -#endif -#endif diff --git a/Source/Common/ServerEnumerator/DCOM Config/AclMgmt.cpp b/Source/Common/ServerEnumerator/DCOM Config/AclMgmt.cpp index 45e2b89..9889775 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/AclMgmt.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/AclMgmt.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/DComPerm.cpp b/Source/Common/ServerEnumerator/DCOM Config/DComPerm.cpp index 6bc016e..8519422 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/DComPerm.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/DComPerm.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/DComPerm.h b/Source/Common/ServerEnumerator/DCOM Config/DComPerm.h index 26da00b..8b034ae 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/DComPerm.h +++ b/Source/Common/ServerEnumerator/DCOM Config/DComPerm.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/ListAcl.cpp b/Source/Common/ServerEnumerator/DCOM Config/ListAcl.cpp index 4da53ce..af08452 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/ListAcl.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/ListAcl.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/SDMgmt.cpp b/Source/Common/ServerEnumerator/DCOM Config/SDMgmt.cpp index 2f8b142..842624e 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/SDMgmt.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/SDMgmt.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/SrvcMgmt.cpp b/Source/Common/ServerEnumerator/DCOM Config/SrvcMgmt.cpp index fe0ffa1..b4c317a 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/SrvcMgmt.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/SrvcMgmt.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/UtilS.cpp b/Source/Common/ServerEnumerator/DCOM Config/UtilS.cpp index d0546c7..f78e826 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/UtilS.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/UtilS.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/DCOM Config/Wrappers.cpp b/Source/Common/ServerEnumerator/DCOM Config/Wrappers.cpp index e3e9ce5..b05f065 100644 --- a/Source/Common/ServerEnumerator/DCOM Config/Wrappers.cpp +++ b/Source/Common/ServerEnumerator/DCOM Config/Wrappers.cpp @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + // ---------------------------------------------------------------------------- // // This file is part of the Microsoft COM+ Samples. diff --git a/Source/Common/ServerEnumerator/OpcEnum.cpp b/Source/Common/ServerEnumerator/OpcEnum.cpp index f1700b6..90a008d 100644 --- a/Source/Common/ServerEnumerator/OpcEnum.cpp +++ b/Source/Common/ServerEnumerator/OpcEnum.cpp @@ -1,61 +1,31 @@ -//============================================================================ -// TITLE: OpcEnum.cpp -// -// CONTENTS: -// -// Implements the OpcServerList object for browsing a computer for OPC servers. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/06/12 mar -// -// Added KEY_EXECUTE to CRegKey.Open in tWinMain() to allow -// OpcEnum to be run from a non-privileged account. Thanks to Matthew -// Burke of Automsoft and Thomas Rummel of Softing for highlighting -// the problem and solution. -// -// Set DCOM launch and access permissions to Everyone and the -// authentication level to None during Registration. Load DCOM security -// settings from the registry so that they can be changed later with -// dcomcnfg. If any security setting is already set in the registry, -// then that setting is not changed. Thanks to Thomas Rummel of Softing -// for the code to set the launch and access permissions and -// authentication level. -// -// Corrected a problem with OpcEnum shutting down on Win9x systems when -// OpcEnum is started at system startup. Thanks to Thomas Rummel of -// Softing for finding and correcting this problem. -// -// 2002/07/17 mar -// -// Added code so that when OpcEnum is registered as a service on Win9x -// systems it will add a registry value under -// HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices -// to cause OpcEnum to be run automatically when the OS starts before a -// user has logged on. It will not stop until the OS is shutdown. -// -// 2003/03/02 rsa -// -// Added a wait loop to ensure the service is removed from the SCM before the -// uninstallation completes. -// -// 2004/12/01 rsa -// -// Use the XP SP2 DCOM configuration APIs if OS is Windows XP SP2 or greater. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "stdafx.h" #include "resource.h" diff --git a/Source/Common/ServerEnumerator/OpcEnum.idl b/Source/Common/ServerEnumerator/OpcEnum.idl index 9cdbd60..1d866fb 100644 --- a/Source/Common/ServerEnumerator/OpcEnum.idl +++ b/Source/Common/ServerEnumerator/OpcEnum.idl @@ -1,27 +1,31 @@ -//============================================================================ -// TITLE: OpcEnum.idl -// -// CONTENTS: -// -// IDL declaration for OpcEnum. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/06/12 mar Add IOPCServerList2 to OpcServerList object -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "opccomn.idl"; diff --git a/Source/Common/ServerEnumerator/OpcSeLst.cpp b/Source/Common/ServerEnumerator/OpcSeLst.cpp index 6c18aa7..7b44786 100644 --- a/Source/Common/ServerEnumerator/OpcSeLst.cpp +++ b/Source/Common/ServerEnumerator/OpcSeLst.cpp @@ -1,36 +1,31 @@ -//============================================================================ -// TITLE: OpcSeLst.cpp -// -// CONTENTS: -// -// Implementation of the EnumClassesOfCategories methods. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/06/12 mar Added the EnumClassesOfCategories method that uses -// the new IOPCEnumGUID interface. -// -// Added AddOldstyleServers function to get all of the "old-style" -// DA 1.0 servers that did not register themselves with the -// ccomponent ategory ID of CATID_OPCDAServer10. -// -// 2002/06/24 mar Added the VerIndProgID parameter to -// IOPCServerList2::GetClassDetails. This returns the -// VersionIndependentProgID if it is in the registry. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "stdafx.h" #include "OpcSvLst.h" diff --git a/Source/Common/ServerEnumerator/OpcSvLst.h b/Source/Common/ServerEnumerator/OpcSvLst.h index bcf8397..c66af0c 100644 --- a/Source/Common/ServerEnumerator/OpcSvLst.h +++ b/Source/Common/ServerEnumerator/OpcSvLst.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: OpcSvList.h -// -// CONTENTS: -// -// Implementation of the EnumClassesOfCategories methods. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/08/22 rsa Updated formatting. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCSERVERLIST_H_ #define __OPCSERVERLIST_H_ diff --git a/Source/Common/ServerEnumerator/StdAfx.cpp b/Source/Common/ServerEnumerator/StdAfx.cpp index 5dc243c..5f9a672 100644 --- a/Source/Common/ServerEnumerator/StdAfx.cpp +++ b/Source/Common/ServerEnumerator/StdAfx.cpp @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: StdAfx.cpp -// -// CONTENTS: -// -// The precompiled header implementation file. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/08/22 rsa Updated formatting. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "stdafx.h" diff --git a/Source/Common/ServerEnumerator/StdAfx.h b/Source/Common/ServerEnumerator/StdAfx.h index a3eb9b2..05bd3e4 100644 --- a/Source/Common/ServerEnumerator/StdAfx.h +++ b/Source/Common/ServerEnumerator/StdAfx.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: StdAfx.h -// -// CONTENTS: -// -// The precompiled header file. -// -// (c) Copyright 1998-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/08/22 rsa Updated formatting. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #if !defined(AFX_STDAFX_H__13486D47_4821_11D2_A494_3CB306C10000__INCLUDED_) #define AFX_STDAFX_H__13486D47_4821_11D2_A494_3CB306C10000__INCLUDED_ diff --git a/Source/Common/ServerEnumerator/resource.h b/Source/Common/ServerEnumerator/resource.h index a113758..5591562 100644 --- a/Source/Common/ServerEnumerator/resource.h +++ b/Source/Common/ServerEnumerator/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by OpcEnum.rc diff --git a/Source/Common/TestServer/COpcTestGroup.h b/Source/Common/TestServer/COpcTestGroup.h deleted file mode 100644 index 0489a96..0000000 --- a/Source/Common/TestServer/COpcTestGroup.h +++ /dev/null @@ -1,65 +0,0 @@ -//============================================================================ -// TITLE: COpcTestGroup.h -// -// CONTENTS: -// -// A group object for the OPC DA 2.05a Test Server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/05/13 RSA First release. -// - -#ifndef _COpcTestGroup_H_ -#define _COpcTestGroup_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "COpcDaGroup.h" - -//============================================================================ -// CLASS: COpcTestGroup -// PURPOSE: A class that implements the IOPCServer interface. -// NOTES: - -class COpcTestGroup : public COpcDaGroup -{ - OPC_CLASS_NEW_DELETE() - - OPC_BEGIN_INTERFACE_TABLE(COpcTestGroup) - OPC_INTERFACE_ENTRY(IConnectionPointContainer) - OPC_INTERFACE_ENTRY(IOPCItemMgt) - OPC_INTERFACE_ENTRY(IOPCSyncIO) - OPC_INTERFACE_ENTRY(IOPCAsyncIO2) - OPC_INTERFACE_ENTRY(IOPCGroupStateMgt) - OPC_END_INTERFACE_TABLE() - -public: - - //========================================================================= - // Operators - - // Constructor - COpcTestGroup() {} - COpcTestGroup(COpcDaServer& cServer, const COpcString& cName) : COpcDaGroup(cServer, cName) {} - - // Destructor - ~COpcTestGroup() { Clear(); } -}; - -#endif // _COpcTestGroup_H_ diff --git a/Source/Common/TestServer/COpcTestServer.cpp b/Source/Common/TestServer/COpcTestServer.cpp deleted file mode 100644 index b83752d..0000000 --- a/Source/Common/TestServer/COpcTestServer.cpp +++ /dev/null @@ -1,50 +0,0 @@ -//============================================================================== -// TITLE: COpcTestServer.cpp -// -// CONTENTS: -// -// Implements the OPC DA 2.05a Test Server and cache lifecycle. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#include "StdAfx.h" -#include "COpcTestServer.h" -#include "COpcDa20Cache.h" - -//============================================================================== -// COpcTestServer - -// FinalConstruct -HRESULT COpcTestServer::FinalConstruct() -{ - if (!Initialize()) - { - return E_FAIL; - } - - return COpcDaServer::FinalConstruct(); -} - -// FinalRelease -bool COpcTestServer::FinalRelease() -{ - COpcDaServer::FinalRelease(); - Uninitialize(); - return true; -} diff --git a/Source/Common/TestServer/COpcTestServer.h b/Source/Common/TestServer/COpcTestServer.h deleted file mode 100644 index 54fc7bf..0000000 --- a/Source/Common/TestServer/COpcTestServer.h +++ /dev/null @@ -1,80 +0,0 @@ -//============================================================================ -// TITLE: COpcTestServer.h -// -// CONTENTS: -// -// A concrete instance of an OPC DA 2.05a Test Server object. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#ifndef _COpcTestServer_H_ -#define _COpcTestServer_H_ - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -#include "COpcDaServer.h" - -#include "OpcTestServer.h" -#include "COpcTestGroup.h" - -//============================================================================ -// CLASS: COpcTestServer -// PURPOSE: A class that implements the IOPCServer interface. - -class COpcTestServer : - public COpcComObject, - public COpcDaServer -{ - OPC_CLASS_NEW_DELETE() - - OPC_BEGIN_INTERFACE_TABLE(COpcTestServer) - OPC_INTERFACE_ENTRY(IOPCCommon) - OPC_INTERFACE_ENTRY(IConnectionPointContainer) - OPC_INTERFACE_ENTRY(IOPCServer) - OPC_INTERFACE_ENTRY(IOPCBrowseServerAddressSpace) - OPC_INTERFACE_ENTRY(IOPCItemProperties) - OPC_END_INTERFACE_TABLE() - -public: - - //========================================================================== - // Operators - - // Constructor - COpcTestServer() {} - - // Destructor - ~COpcTestServer() {} - - //========================================================================= - // Public Methods - - // FinalConstruct - virtual HRESULT FinalConstruct(); - - // FinalRelease - virtual bool FinalRelease(); - - // CreateGroup - virtual COpcDaGroup* CreateGroup(COpcDaServer& cServer, const COpcString& cName) { return new COpcTestGroup(cServer, cName); } -}; - -#endif // _COpcTestServer_H_ diff --git a/Source/Common/TestServer/OpcTestServer.idl b/Source/Common/TestServer/OpcTestServer.idl deleted file mode 100644 index 457b64f..0000000 --- a/Source/Common/TestServer/OpcTestServer.idl +++ /dev/null @@ -1,73 +0,0 @@ -//============================================================================ -// TITLE: OpcTestServer.idl -// -// CONTENTS: -// -// The OPC DA 2.05a Test Server IDL file. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2025/01/01 OPC Test server for proxy/stub verification. -// - -import "opccomn.idl"; -import "opcda.idl"; - -#ifdef OPC_PLATFORM_X64 - -[ - uuid(F8582CF7-88FB-11DA-A5ED-0060B0692061), - version(1.0) -] -library OpcTestServer_x64Lib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); - - [ - uuid(F8582CF8-88FB-11DA-A5ED-0060B0692061), - helpstring("OPC DA 2.05a Test Server (x64)") - ] - coclass OpcTestServer_x64 - { - [default] interface IOPCServer; - [source] interface IOPCShutdown; - }; -}; - -#else - -[ - uuid(F8582CF2-88FB-11DA-A5ED-0060B0692061), - version(1.0) -] -library OpcTestServer_x86Lib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); - - [ - uuid(F8582CF3-88FB-11DA-A5ED-0060B0692061), - helpstring("OPC DA 2.05a Test Server (x86)") - ] - coclass OpcTestServer_x86 - { - [default] interface IOPCServer; - [source] interface IOPCShutdown; - }; -}; - -#endif diff --git a/Source/Common/TestServer/StdAfx.cpp b/Source/Common/TestServer/StdAfx.cpp deleted file mode 100644 index a96479d..0000000 --- a/Source/Common/TestServer/StdAfx.cpp +++ /dev/null @@ -1,29 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.cpp -// -// CONTENTS: -// -// This file includes StdAfx.h and is used to create the pre-compiled headers. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#include "StdAfx.h" - -#include "opccomn_i.c" -#include "opcda_i.c" diff --git a/Source/Common/TestServer/StdAfx.h b/Source/Common/TestServer/StdAfx.h deleted file mode 100644 index 0358a07..0000000 --- a/Source/Common/TestServer/StdAfx.h +++ /dev/null @@ -1,45 +0,0 @@ -//============================================================================ -// TITLE: StdAfx.h -// -// CONTENTS: -// -// This file standard precompiled include files. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// - -#ifndef _StdAfx_H -#define _StdAfx_H - -#if _MSC_VER >= 1000 -#pragma once -#endif // _MSC_VER >= 1000 - -// Insert your headers here -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -#include -#include -#include -#include -#include -#include - -#include "OpcUtils.h" - -#endif // _StdAfx_H diff --git a/Source/DataAccess/ProxyStub/opcda.idl b/Source/DataAccess/ProxyStub/opcda.idl index fe590c3..42b95eb 100644 --- a/Source/DataAccess/ProxyStub/opcda.idl +++ b/Source/DataAccess/ProxyStub/opcda.idl @@ -1,58 +1,31 @@ -//============================================================================== -// TITLE: opcda.idl -// -// CONTENTS: -// -// Interface declarations for the OPC Data Access specifications. -// -// (c) Copyright 1997-2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 1997/05/12 ACC fixed UNCERTAIN bits, add AsyncIO2, OPCDataCallback, -// OPCItemProperties, BROWSE_TO -// -// 1998/06/19 ACC change V2 uuids prior to final release -// to avoid conflict with 'old' OPCDA Automation uuids -// Change name of 3 methods on AsyncIO2 to -// Cancel2,SetEnable,GetEnable to eliminate conflicts -// -// 2002/02/10 CRT Added IOPCItemDeadbandMgt Interface -// Added IOPCItemSamplingMgt Interface -// Added IOPCBrowse Interface -// Added IOPCServer2 Interface -// Added IOPCItemIO Interface -// Added new BAD Quality status mask -// -// 2002/08/09 CRT Added IOPCITEMVQTstructure -// Moved #defines to Library section and “typed” them -// Added definition for Category Ids -// -// 2002/08/21 RSA Added asynchrounous UUIDs. Fixed formatting. -// -// 2002/08/30 CRT Added IOPCSyncIO2::Read -// Added IOPCServer2::RemoveGroupEx -// -// 2002/09/20 CRT Added bit masks for Browse method -// -// 2002/10/03 CRT Added IOPCAsyncIO3 Interface -// Added IOPCGroupStateMgt2 Interface -// -// 2003/03/03 RSA Added fields to ensure natural byte alignment for new structures. -// 2003/10/12 RSA Added constants for complex data properties. -// 2004/09/01 RSA Renamed modules in TYPELIB section to avoid name conflicts. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "oaidl.idl"; import "ocidl.idl"; diff --git a/Source/DataAccess/ProxyStub/opcerror.h b/Source/DataAccess/ProxyStub/opcerror.h index 57f93b0..0a98146 100644 --- a/Source/DataAccess/ProxyStub/opcerror.h +++ b/Source/DataAccess/ProxyStub/opcerror.h @@ -1,32 +1,31 @@ -//============================================================================== -// TITLE: operror.h -// -// CONTENTS: -// -// Defines error codes for the Data Access specifications. -// -// (c) Copyright 1997-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 1997/05/12 ACC Removed Unused messages -// Added OPC_S_INUSE, OPC_E_INVALIDCONFIGFILE, OPC_E_NOTFOUND -// 1997/05/12 ACC Added OPC_E_INVALID_PID -// 2002/08/12 CRT Added new error codes for DA3.0 -// 2003/01/02 RSA Updated formatting. Added messages to proxy/stub resource block. -// 2003/10/12 RSA Added error codes for complex data. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCERROR_H #define __OPCERROR_H diff --git a/Source/DataAccess/ProxyStub/opcerror.mc b/Source/DataAccess/ProxyStub/opcerror.mc index 19dd086..4549aef 100644 --- a/Source/DataAccess/ProxyStub/opcerror.mc +++ b/Source/DataAccess/ProxyStub/opcerror.mc @@ -1,32 +1,31 @@ -;//============================================================================== -;// TITLE: operror.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the Data Access specifications. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 1997-2003 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 1997/05/12 ACC Removed Unused messages -;// Added OPC_S_INUSE, OPC_E_INVALIDCONFIGFILE, OPC_E_NOTFOUND -;// 1997/05/12 ACC Added OPC_E_INVALID_PID -;// 2002/08/12 CRT Added new error codes for DA3.0 -;// 2003/01/02 RSA Updated formatting. Added messages to proxy/stub resource block. -;// 2003/10/12 RSA Added error codes for complex data. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT diff --git a/Source/DataAccess/ProxyStub/resource.h b/Source/DataAccess/ProxyStub/resource.h index 7264771..5e55d60 100644 --- a/Source/DataAccess/ProxyStub/resource.h +++ b/Source/DataAccess/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by opcda_ps.rc diff --git a/Source/DataExchange/ProxyStub/OpcDx.idl b/Source/DataExchange/ProxyStub/OpcDx.idl index 1930cec..9d02e31 100644 --- a/Source/DataExchange/ProxyStub/OpcDx.idl +++ b/Source/DataExchange/ProxyStub/OpcDx.idl @@ -1,38 +1,31 @@ -//================================================================================ -// TITLE: OpcDx.idl -// -// CONTENTS: -// -// The OPC Data Exchange 1.00 IDL file. -// -// This IDL was derived from the XML service description defined in the -// specification. The mapping the XML service and the IDL elements is -// a direct as possible (i.e. XML data types map onto IDL structures, XML -// services map onto IDL interfaces/methods et. al.). However, there is no -// standard representation in IDL for 'missing' attributes (i.e. values that -// are not contained in the XML). The IDL defines bit masks for each optional -// field in a structure. Clients and servers must use these masks to test -// and/or indicate whether a given field contains a meaningful value. -// -// (c) Copyright 2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/09 RSA First release. -// 2003/03/03 RSA Added fields to ensure natural byte alignment for structures. -// 2004/09/01 RSA Renamed modules in TYPELIB section to avoid name conflicts. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "oaidl.idl"; import "ocidl.idl"; diff --git a/Source/DataExchange/ProxyStub/OpcDxError.h b/Source/DataExchange/ProxyStub/OpcDxError.h index 212b397..2ef3117 100644 --- a/Source/DataExchange/ProxyStub/OpcDxError.h +++ b/Source/DataExchange/ProxyStub/OpcDxError.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcDxError.h -// -// CONTENTS: -// -// Defines error codes for the OPC Data Exchange specification. -// -// (c) Copyright 2002 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/12/12 RSA Created. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcDxError_H_ #define _OpcDxError_H_ @@ -229,7 +233,7 @@ // // MessageText: // -// The override value is outside of the target item’s range and overridden flag is set to true. +// The override value is outside of the target item�s range and overridden flag is set to true. // #define OPCDX_E_OVERRIDE_RANGE ((HRESULT)0xC0040711L) @@ -247,7 +251,7 @@ // // MessageText: // -// The substitute value is outside of the target item’s range the enable substitute value flag is set to true. +// The substitute value is outside of the target item�s range the enable substitute value flag is set to true. // #define OPCDX_E_SUBSTITUTE_RANGE ((HRESULT)0xC0040713L) @@ -265,7 +269,7 @@ // // MessageText: // -// The target item no longer exists in the DX server’s address space. +// The target item no longer exists in the DX server�s address space. // #define OPCDX_E_UNKNOWN_TARGET_ITEM ((HRESULT)0xC0040715L) @@ -292,7 +296,7 @@ // // MessageText: // -// The source item is no longer in the source server’s address space. +// The source item is no longer in the source server�s address space. // #define OPCDX_E_UNKNOWN_SOURCE_ITEM ((HRESULT)0xC0040718L) @@ -301,7 +305,7 @@ // // MessageText: // -// The source item does not confirm to the source server’s syntax. +// The source item does not confirm to the source server�s syntax. // #define OPCDX_E_INVALID_SOURCE_ITEM ((HRESULT)0xC0040719L) @@ -409,7 +413,7 @@ // // MessageText: // -// The source item cannot be converted to the target’s data type. This error reported by the source server. +// The source item cannot be converted to the target�s data type. This error reported by the source server. // #define OPCDX_E_SOURCE_ITEM_BADTYPE ((HRESULT)0xC0040725L) @@ -463,7 +467,7 @@ // // MessageText: // -// The target item cannot be converted to the target’s data type. +// The target item cannot be converted to the target�s data type. // #define OPCDX_E_TARGET_ITEM_BADTYPE ((HRESULT)0xC004072BL) diff --git a/Source/DataExchange/ProxyStub/OpcDxError.mc b/Source/DataExchange/ProxyStub/OpcDxError.mc index ba93591..811c321 100644 --- a/Source/DataExchange/ProxyStub/OpcDxError.mc +++ b/Source/DataExchange/ProxyStub/OpcDxError.mc @@ -1,27 +1,31 @@ -;//============================================================================== -;// TITLE: OpcDxError.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the OPC Data Exchange specification. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 2002 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 2002/12/12 RSA Created. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT @@ -201,7 +205,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_OVERRIDE_RANGE Language=English -The override value is outside of the target item’s range and overridden flag is set to true. +The override value is outside of the target item�s range and overridden flag is set to true. . MessageID= @@ -217,7 +221,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_SUBSTITUTE_RANGE Language=English -The substitute value is outside of the target item’s range the enable substitute value flag is set to true. +The substitute value is outside of the target item�s range the enable substitute value flag is set to true. . MessageID= @@ -233,7 +237,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_UNKNOWN_TARGET_ITEM Language=English -The target item no longer exists in the DX server’s address space. +The target item no longer exists in the DX server�s address space. . MessageID= @@ -257,7 +261,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_UNKNOWN_SOURCE_ITEM Language=English -The source item is no longer in the source server’s address space. +The source item is no longer in the source server�s address space. . MessageID= @@ -265,7 +269,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_INVALID_SOURCE_ITEM Language=English -The source item does not confirm to the source server’s syntax. +The source item does not confirm to the source server�s syntax. . MessageID= @@ -361,7 +365,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_SOURCE_ITEM_BADTYPE Language=English -The source item cannot be converted to the target’s data type. This error reported by the source server. +The source item cannot be converted to the target�s data type. This error reported by the source server. . MessageID= @@ -409,7 +413,7 @@ Severity=Error Facility=Interface SymbolicName=OPCDX_E_TARGET_ITEM_BADTYPE Language=English -The target item cannot be converted to the target’s data type. +The target item cannot be converted to the target�s data type. . MessageID= diff --git a/Source/DataExchange/ProxyStub/resource.h b/Source/DataExchange/ProxyStub/resource.h index 12695a1..c567976 100644 --- a/Source/DataExchange/ProxyStub/resource.h +++ b/Source/DataExchange/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by OpcDxPs.rc diff --git a/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.h b/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.h index 558c0d3..4a3f2a7 100644 --- a/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.h +++ b/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: OpcHda_Error.h -// -// CONTENTS: -// -// Defines error codes for the Historial Data Access specifications. -// -// (c) Copyright 2000-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/01/17 OPC Created. -// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPCHDAERROR_H #define __OPCHDAERROR_H diff --git a/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.mc b/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.mc index 2a17a72..1a8388f 100644 --- a/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.mc +++ b/Source/HistoricalDataAccess/ProxyStub/OpcHda_Error.mc @@ -1,28 +1,31 @@ -;//============================================================================== -;// TITLE: OpcHda_Error.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the Historial Data Access specifications. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 2000-2003 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 2000/01/17 OPC Created. -;// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT diff --git a/Source/HistoricalDataAccess/ProxyStub/opchda.idl b/Source/HistoricalDataAccess/ProxyStub/opchda.idl index 83d0110..d69402b 100644 --- a/Source/HistoricalDataAccess/ProxyStub/opchda.idl +++ b/Source/HistoricalDataAccess/ProxyStub/opchda.idl @@ -1,29 +1,32 @@ -//============================================================================== -// TITLE: opchda.idl -// -// CONTENTS: -// -// Interface declarations for the OPC Historial Data Access specifications. -// -// (c) Copyright 1999-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2001/01/26 OPC Made revisions for version 1.1 -// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. -// - +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + import "oaidl.idl"; //============================================================================== diff --git a/Source/HistoricalDataAccess/ProxyStub/resource.h b/Source/HistoricalDataAccess/ProxyStub/resource.h index 1c0d7be..23c88f8 100644 --- a/Source/HistoricalDataAccess/ProxyStub/resource.h +++ b/Source/HistoricalDataAccess/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by opchda_ps.rc diff --git a/Source/Include/version.h b/Source/Include/version.h index 4d1433e..83e30a6 100644 --- a/Source/Include/version.h +++ b/Source/Include/version.h @@ -5,7 +5,7 @@ #define xstr(s) str(s) #define str(s) #s -#define BUILD_VERSION 77 +#define BUILD_VERSION 85 #define COPYRIGHT_DATE "2026" #define FILE_VERSION_TEXT xstr(BUILD_VERSION) diff --git a/Source/Security/ProxyStub/OpcErrSec.h b/Source/Security/ProxyStub/OpcErrSec.h index 5020df1..23e4a4c 100644 --- a/Source/Security/ProxyStub/OpcErrSec.h +++ b/Source/Security/ProxyStub/OpcErrSec.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: OpcErrSec.h -// -// CONTENTS: -// -// Defines error codes for the Security specifications. -// -// (c) Copyright 2000-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/08/18 OPC Created. -// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef __OPC_ERR_SEC_H #define __OPC_ERR_SEC_H diff --git a/Source/Security/ProxyStub/OpcErrSec.mc b/Source/Security/ProxyStub/OpcErrSec.mc index b74b48a..532f38e 100644 --- a/Source/Security/ProxyStub/OpcErrSec.mc +++ b/Source/Security/ProxyStub/OpcErrSec.mc @@ -1,28 +1,31 @@ -;//============================================================================== -;// TITLE: OpcErrSec.h +;// ======================================================================== +;// Copyright (c) 2002-2026 OPC Foundation. All rights reserved. ;// -;// CONTENTS: -;// -;// Defines error codes for the Security specifications. +;// OPC Foundation MIT License 1.00 ;// -;// (c) Copyright 2000-2003 The OPC Foundation -;// ALL RIGHTS RESERVED. +;// Permission is hereby granted, free of charge, to any person +;// obtaining a copy of this software and associated documentation +;// files (the "Software"), to deal in the Software without +;// restriction, including without limitation the rights to use, +;// copy, modify, merge, publish, distribute, sublicense, and/or sell +;// copies of the Software, and to permit persons to whom the +;// Software is furnished to do so, subject to the following +;// conditions: ;// -;// DISCLAIMER: -;// This code is provided by the OPC Foundation solely to assist in -;// understanding and use of the appropriate OPC Specification(s) and may be -;// used as set forth in the License Grant section of the OPC Specification. -;// This code is provided as-is and without warranty or support of any sort -;// and is subject to the Warranty and Liability Disclaimers which appear -;// in the printed OPC Specification. -;// -;// MODIFICATION LOG: -;// -;// Date By Notes -;// ---------- --- ----- -;// 2000/08/18 OPC Created. -;// 2003/01/06 RSA Updated formatting. Added messages to proxy/stub resource block. +;// The above copyright notice and this permission notice shall be +;// included in all copies or substantial portions of the Software. +;// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +;// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +;// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +;// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +;// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +;// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +;// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +;// OTHER DEALINGS IN THE SOFTWARE. ;// +;// The complete license agreement can be found here: +;// http://opcfoundation.org/License/MIT/1.00/ +;// ======================================================================== MessageIdTypedef=HRESULT diff --git a/Source/Security/ProxyStub/opcSec.idl b/Source/Security/ProxyStub/opcSec.idl index 7d272fb..847d4d2 100644 --- a/Source/Security/ProxyStub/opcSec.idl +++ b/Source/Security/ProxyStub/opcSec.idl @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: OpcSec.idl -// -// CONTENTS: -// -// Interface declarations for the OPC Security specifications. -// -// (c) Copyright 1999-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2000/08/03 DJ Finalized for spec release 1.00 -// 2003/01/06 RSA Fixed formatting to comply with coding guidelines. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ import "oaidl.idl"; diff --git a/Source/Security/ProxyStub/resource.h b/Source/Security/ProxyStub/resource.h index e21a49b..d541b17 100644 --- a/Source/Security/ProxyStub/resource.h +++ b/Source/Security/ProxyStub/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by opcsec_ps.rc diff --git a/Source/Shared/OpcUtilityClasses/COpcArray.h b/Source/Shared/OpcUtilityClasses/COpcArray.h index e7f9faf..0bcd739 100644 --- a/Source/Shared/OpcUtilityClasses/COpcArray.h +++ b/Source/Shared/OpcUtilityClasses/COpcArray.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcArray.h -// -// CONTENTS: -// -// A template indexable array class. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/22 RSA Added GetData() method. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcArray_H #define _COpcArray_H diff --git a/Source/Shared/OpcUtilityClasses/COpcBrowseElement.cpp b/Source/Shared/OpcUtilityClasses/COpcBrowseElement.cpp index 7d5d70e..0cc1d45 100644 --- a/Source/Shared/OpcUtilityClasses/COpcBrowseElement.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcBrowseElement.cpp @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcBrowseElement.cpp -// -// CONTENTS: -// -// A single element in the OPC server namespace. -// -// (c) Copyright 2002-2004 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/12/26 RSA Moved from a DA specific class library. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcBrowseElement.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcBrowseElement.h b/Source/Shared/OpcUtilityClasses/COpcBrowseElement.h index 2973510..86a88df 100644 --- a/Source/Shared/OpcUtilityClasses/COpcBrowseElement.h +++ b/Source/Shared/OpcUtilityClasses/COpcBrowseElement.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcBrowseElement.h -// -// CONTENTS: -// -// A single element in the OPC server namespace. -// -// (c) Copyright 2002-2004 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/12/26 RSA Moved from a DA specific class library. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcBrowseElement_H_ #define _COpcBrowseElement_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcCPContainer.cpp b/Source/Shared/OpcUtilityClasses/COpcCPContainer.cpp index 9c590fd..c5a4b20 100644 --- a/Source/Shared/OpcUtilityClasses/COpcCPContainer.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcCPContainer.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcCPContainer.cpp -// -// CONTENTS: -// -// A class that implements the IConnectionPointContainer interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcCPContainer.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcCPContainer.h b/Source/Shared/OpcUtilityClasses/COpcCPContainer.h index ab2117c..cb43ee1 100644 --- a/Source/Shared/OpcUtilityClasses/COpcCPContainer.h +++ b/Source/Shared/OpcUtilityClasses/COpcCPContainer.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcCPContainer.h -// -// CONTENTS: -// -// A class that implements the IConnectionPointContainer interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcCPContainer_H_ #define _COpcCPContainer_H_ @@ -100,4 +104,4 @@ class OPCUTILS_API COpcCPContainer : public IConnectionPointContainer COpcConnectionPointList m_cCPs; }; -#endif // _COpcCPContainer_H_ \ No newline at end of file +#endif // _COpcCPContainer_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcClassFactory.cpp b/Source/Shared/OpcUtilityClasses/COpcClassFactory.cpp index d0f61e2..bc97340 100644 --- a/Source/Shared/OpcUtilityClasses/COpcClassFactory.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcClassFactory.cpp @@ -1,27 +1,31 @@ -//============================================================================ -// TITLE: COpcClassFactory.cpp -// -// CONTENTS: -// -// Implements a standard COM class factory class. -// -// (c) Copyright 2002-2004 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2004/12/01 RSA Added calls to DCOM configuration APIs for WinXP SP2 or greater. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcClassFactory.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcClassFactory.h b/Source/Shared/OpcUtilityClasses/COpcClassFactory.h index 8a5a2fa..e090c2c 100644 --- a/Source/Shared/OpcUtilityClasses/COpcClassFactory.h +++ b/Source/Shared/OpcUtilityClasses/COpcClassFactory.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcClassFactory.h -// -// CONTENTS: -// -// Declares a standard COM class factory class. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcClassFactory_H #define _COpcClassFactory_H @@ -294,4 +298,4 @@ static const TOpcClassTableEntry g_pClassTable[] = { #define OPC_END_CLASS_TABLE() {&CLSID_NULL, NULL, NULL, NULL, NULL}}; -#endif // _COpcClassFactory_H \ No newline at end of file +#endif // _COpcClassFactory_H diff --git a/Source/Shared/OpcUtilityClasses/COpcComModule.cpp b/Source/Shared/OpcUtilityClasses/COpcComModule.cpp index 2d745ba..8550555 100644 --- a/Source/Shared/OpcUtilityClasses/COpcComModule.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcComModule.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcComModule.cpp -// -// CONTENTS: -// -// A class that handles initialization and registration of a COM module. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/09/29 RSA Removed a rundant call to Run() when running as a WIN32 service. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcComModule.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcComModule.h b/Source/Shared/OpcUtilityClasses/COpcComModule.h index c7bad83..8682980 100644 --- a/Source/Shared/OpcUtilityClasses/COpcComModule.h +++ b/Source/Shared/OpcUtilityClasses/COpcComModule.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcComModule.h -// -// CONTENTS: -// -// A class that manages startup and shutdown of a ComModule. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcComModule_H_ #define _COpcComModule_H_ @@ -337,4 +341,4 @@ struct OPCUTILS_API OpcVersionInfo OPCUTILS_API bool OpcGetModuleVersion(OpcVersionInfo& cInfo); -#endif // _COpcComModule_H_ \ No newline at end of file +#endif // _COpcComModule_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcComObject.h b/Source/Shared/OpcUtilityClasses/COpcComObject.h index 2646969..31acb02 100644 --- a/Source/Shared/OpcUtilityClasses/COpcComObject.h +++ b/Source/Shared/OpcUtilityClasses/COpcComObject.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcComObject.h -// -// CONTENTS: -// -// A base class for COM servers -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcComObject_H #define _COpcComObject_H @@ -246,4 +250,4 @@ STDMETHODIMP QueryInterface(REFIID iid, LPVOID* ppInterface) {return InternalQue STDMETHODIMP_(ULONG) AddRef() {return InternalAddRef();} \ STDMETHODIMP_(ULONG) Release() {return InternalRelease();} -#endif // _COpcComObject_H \ No newline at end of file +#endif // _COpcComObject_H diff --git a/Source/Shared/OpcUtilityClasses/COpcCommon.cpp b/Source/Shared/OpcUtilityClasses/COpcCommon.cpp index dcdcfc4..ea386d9 100644 --- a/Source/Shared/OpcUtilityClasses/COpcCommon.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcCommon.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcCommon.cpp -// -// CONTENTS: -// -// A class that implements the IOPCCommon interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/05/07 RSA Fixed problem with locale ids on non-english systems. -// 2003/06/25 RSA Fixed return value for invalid/unsupported locale ids. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcCommon.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcCommon.h b/Source/Shared/OpcUtilityClasses/COpcCommon.h index 135cc9b..50e686b 100644 --- a/Source/Shared/OpcUtilityClasses/COpcCommon.h +++ b/Source/Shared/OpcUtilityClasses/COpcCommon.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcCommon.h -// -// CONTENTS: -// -// A class that implements the IOPCCommon interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcCommon_H_ #define _COpcCommon_H_ @@ -164,4 +168,4 @@ class OPCUTILS_API COpcCommon : #define LOCALE_GERMAN_GERMANY MAKELCID(MAKELANGID(LANG_GERMAN, SUBLANG_DEFAULT), SORT_DEFAULT) #define LOCALE_JAPANESE_JAPAN MAKELCID(MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT), SORT_DEFAULT) -#endif // _COpcCommon_H_ \ No newline at end of file +#endif // _COpcCommon_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.cpp b/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.cpp index f021464..f40b64e 100644 --- a/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcConnectionPoint.cpp -// -// CONTENTS: -// -// A class that implements the IConnectionPoint interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcConnectionPoint.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.h b/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.h index 217f0ba..479dc46 100644 --- a/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.h +++ b/Source/Shared/OpcUtilityClasses/COpcConnectionPoint.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcConnectionPoint.h -// -// CONTENTS: -// -// A class that implements the IConnectionPoint interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcConnectionPoint_H_ #define _COpcConnectionPoint_H_ @@ -133,4 +137,4 @@ OPCUTILS_API HRESULT OpcDisconnect( REFIID riid, DWORD dwConnection); -#endif // _COpcConnectionPoint_H_ \ No newline at end of file +#endif // _COpcConnectionPoint_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcCriticalSection.h b/Source/Shared/OpcUtilityClasses/COpcCriticalSection.h index ea60ef2..29575ef 100644 --- a/Source/Shared/OpcUtilityClasses/COpcCriticalSection.h +++ b/Source/Shared/OpcUtilityClasses/COpcCriticalSection.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcCriticalSection.h -// -// CONTENTS: -// -// A wrapper for a critical section. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcCriticalSection_H_ #define _COpcCriticalSection_H_ @@ -191,4 +195,4 @@ class COpcSynchObject COpcCriticalSection m_cLock; }; -#endif // _COpcCriticalSection_H_ \ No newline at end of file +#endif // _COpcCriticalSection_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcEnumCPs.cpp b/Source/Shared/OpcUtilityClasses/COpcEnumCPs.cpp index e410ab9..031b370 100644 --- a/Source/Shared/OpcUtilityClasses/COpcEnumCPs.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcEnumCPs.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumCPs.cpp -// -// CONTENTS: -// -// A class that implements the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcEnumCPs.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcEnumCPs.h b/Source/Shared/OpcUtilityClasses/COpcEnumCPs.h index 4b85306..6887907 100644 --- a/Source/Shared/OpcUtilityClasses/COpcEnumCPs.h +++ b/Source/Shared/OpcUtilityClasses/COpcEnumCPs.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumCPs.h -// -// CONTENTS: -// -// A class that implements the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcEnumCPs_H_ #define _COpcEnumCPs_H_ @@ -92,4 +96,4 @@ class OPCUTILS_API COpcEnumCPs COpcConnectionPointList m_cCPs; }; -#endif // _COpcEnumCPs_H_ \ No newline at end of file +#endif // _COpcEnumCPs_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcEnumString.cpp b/Source/Shared/OpcUtilityClasses/COpcEnumString.cpp index add8efc..eb517c2 100644 --- a/Source/Shared/OpcUtilityClasses/COpcEnumString.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcEnumString.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumString.cpp -// -// CONTENTS: -// -// A class that implements the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcEnumString.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcEnumString.h b/Source/Shared/OpcUtilityClasses/COpcEnumString.h index 20dc478..3f705dc 100644 --- a/Source/Shared/OpcUtilityClasses/COpcEnumString.h +++ b/Source/Shared/OpcUtilityClasses/COpcEnumString.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumStrings.h -// -// CONTENTS: -// -// A class that implements the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcEnumStrings_H_ #define _COpcEnumStrings_H_ @@ -93,4 +97,4 @@ class OPCUTILS_API COpcEnumString LPWSTR* m_pStrings; }; -#endif // _COpcEnumStrings_H_ \ No newline at end of file +#endif // _COpcEnumStrings_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.cpp b/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.cpp index 362c9b9..6e87065 100644 --- a/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumUnknown.cpp -// -// CONTENTS: -// -// A class that implements the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcEnumUnknown.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.h b/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.h index 3f6dad9..bf7a984 100644 --- a/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.h +++ b/Source/Shared/OpcUtilityClasses/COpcEnumUnknown.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumUnknown.h -// -// CONTENTS: -// -// A class that implements the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcEnumUnknowns_H_ #define _COpcEnumUnknowns_H_ @@ -94,4 +98,4 @@ class OPCUTILS_API COpcEnumUnknown IUnknown** m_pUnknowns; }; -#endif // _COpcEnumUnknowns_H_ \ No newline at end of file +#endif // _COpcEnumUnknowns_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcFile.cpp b/Source/Shared/OpcUtilityClasses/COpcFile.cpp index 2ff70ab..6fd5f22 100644 --- a/Source/Shared/OpcUtilityClasses/COpcFile.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcFile.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcFile.cpp -// -// CONTENTS: -// -// A class that provides basic file I/O functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcFile.h" @@ -236,4 +240,4 @@ BYTE* COpcFile::GetMemoryMapping() // return a pointer to the memory view of the file. return m_pView; -} \ No newline at end of file +} diff --git a/Source/Shared/OpcUtilityClasses/COpcFile.h b/Source/Shared/OpcUtilityClasses/COpcFile.h index 40223ec..8a840ea 100644 --- a/Source/Shared/OpcUtilityClasses/COpcFile.h +++ b/Source/Shared/OpcUtilityClasses/COpcFile.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcFile.h -// -// CONTENTS: -// -// A class that provides basic file I/O functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcFile_H_ #define _COpcFile_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcList.h b/Source/Shared/OpcUtilityClasses/COpcList.h index 2ecf321..dd1a3fe 100644 --- a/Source/Shared/OpcUtilityClasses/COpcList.h +++ b/Source/Shared/OpcUtilityClasses/COpcList.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcList.h -// -// CONTENTS: -// -// A template double linked list class. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcList_H_ #define _COpcList_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcMap.h b/Source/Shared/OpcUtilityClasses/COpcMap.h index 551a8c3..65260c2 100644 --- a/Source/Shared/OpcUtilityClasses/COpcMap.h +++ b/Source/Shared/OpcUtilityClasses/COpcMap.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcMap.h -// -// CONTENTS: -// -// A template double linked list class. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcMap_H_ #define _COpcMap_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcSecurity.cpp b/Source/Shared/OpcUtilityClasses/COpcSecurity.cpp index 8345d62..b565419 100644 --- a/Source/Shared/OpcUtilityClasses/COpcSecurity.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcSecurity.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcSecurity.cpp -// -// CONTENTS: -// -// A class tha encapsulates details of security implementations. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcSecurity.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcSecurity.h b/Source/Shared/OpcUtilityClasses/COpcSecurity.h index 304c920..20e086a 100644 --- a/Source/Shared/OpcUtilityClasses/COpcSecurity.h +++ b/Source/Shared/OpcUtilityClasses/COpcSecurity.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcSecurity.h -// -// CONTENTS: -// -// A class tha encapsulates details of security implementations. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcSecurity_H_ #define _COpcSecurity_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcSortedArray.h b/Source/Shared/OpcUtilityClasses/COpcSortedArray.h index 9efbccc..1c029b4 100644 --- a/Source/Shared/OpcUtilityClasses/COpcSortedArray.h +++ b/Source/Shared/OpcUtilityClasses/COpcSortedArray.h @@ -1,26 +1,31 @@ -//============================================================================== -// TITLE: COpcSortedArray.h -// -// CONTENTS: -// -// A template indexable array class that is sorted on a key. -// -// (c) Copyright 2004 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2004/01/23 RSA Initial implementation. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcSortedArray_H #define _COpcSortedArray_H diff --git a/Source/Shared/OpcUtilityClasses/COpcString.cpp b/Source/Shared/OpcUtilityClasses/COpcString.cpp index 4e9bb00..ec5288a 100644 --- a/Source/Shared/OpcUtilityClasses/COpcString.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcString.cpp @@ -1,29 +1,31 @@ -//============================================================================== -// TITLE: OpcAlloc.cpp -// -// CONTENTS: -// -// Implementations of memory allocation functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/23 RSA Added support for UTF-8 character set. -// 2003/05/07 RSA Fixed bug in ReverseFind(). -// 2003/06/25 RSA Fixed memory problems. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcString.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcString.h b/Source/Shared/OpcUtilityClasses/COpcString.h index 1fc56c7..1872893 100644 --- a/Source/Shared/OpcUtilityClasses/COpcString.h +++ b/Source/Shared/OpcUtilityClasses/COpcString.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcString.h -// -// CONTENTS: -// -// A simple string class. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/23 RSA Added support for UTF-8 character set. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcString_H_ #define _COpcString_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcText.cpp b/Source/Shared/OpcUtilityClasses/COpcText.cpp index 2c1ff8c..260d9e5 100644 --- a/Source/Shared/OpcUtilityClasses/COpcText.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcText.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcText.cpp -// -// CONTENTS: -// -// A class that defines a text element to read from text buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcText.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcText.h b/Source/Shared/OpcUtilityClasses/COpcText.h index b359d80..bcb5bf5 100644 --- a/Source/Shared/OpcUtilityClasses/COpcText.h +++ b/Source/Shared/OpcUtilityClasses/COpcText.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcText.h -// -// CONTENTS: -// -// A class that defines a text element to read from text buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcText_H #define _COpcText_H diff --git a/Source/Shared/OpcUtilityClasses/COpcTextReader.cpp b/Source/Shared/OpcUtilityClasses/COpcTextReader.cpp index f0ab8d1..d510924 100644 --- a/Source/Shared/OpcUtilityClasses/COpcTextReader.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcTextReader.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcTextReader.cpp -// -// CONTENTS: -// -// A class that parses a stream of text. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcTextReader.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcTextReader.h b/Source/Shared/OpcUtilityClasses/COpcTextReader.h index 1a6474e..c8e9f7f 100644 --- a/Source/Shared/OpcUtilityClasses/COpcTextReader.h +++ b/Source/Shared/OpcUtilityClasses/COpcTextReader.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcTextReader.h -// -// CONTENTS: -// -// A class that parses a stream of text. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcTextReader_H #define _COpcTextReader_H diff --git a/Source/Shared/OpcUtilityClasses/COpcThread.cpp b/Source/Shared/OpcUtilityClasses/COpcThread.cpp index 5dbe84d..c8de507 100644 --- a/Source/Shared/OpcUtilityClasses/COpcThread.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcThread.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcThread.cpp -// -// CONTENTS: -// -// A class that manages startup and shutdown of a thread. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcThread.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcThread.h b/Source/Shared/OpcUtilityClasses/COpcThread.h index a11e6d3..dc5c653 100644 --- a/Source/Shared/OpcUtilityClasses/COpcThread.h +++ b/Source/Shared/OpcUtilityClasses/COpcThread.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcThread.h -// -// CONTENTS: -// -// A class that manages startup and shutdown of a thread. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcThread_H_ #define _COpcThread_H_ @@ -95,4 +99,4 @@ class OPCUTILS_API COpcThread void* m_pData; }; -#endif // _COpcThread_H_ \ No newline at end of file +#endif // _COpcThread_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcThreadPool.cpp b/Source/Shared/OpcUtilityClasses/COpcThreadPool.cpp index 08f1d2a..43627ae 100644 --- a/Source/Shared/OpcUtilityClasses/COpcThreadPool.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcThreadPool.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcThreadPool.cpp -// -// CONTENTS: -// -// Manages a pool of threads that process queued messages. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/12/02 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcThreadPool.h" @@ -251,4 +255,4 @@ void COpcThreadPool::SetSize(UINT uMinThreads, UINT uMaxThreads) m_uMinThreads = uMinThreads; m_uMaxThreads = uMaxThreads; -} \ No newline at end of file +} diff --git a/Source/Shared/OpcUtilityClasses/COpcThreadPool.h b/Source/Shared/OpcUtilityClasses/COpcThreadPool.h index d313f1d..7fd294a 100644 --- a/Source/Shared/OpcUtilityClasses/COpcThreadPool.h +++ b/Source/Shared/OpcUtilityClasses/COpcThreadPool.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcThreadPool.h -// -// CONTENTS: -// -// Manages a pool of threads that process queued messages. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/12/02 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcThreadPool_H_ #define _COpcThreadPool_H_ @@ -147,4 +151,4 @@ class OPCUTILS_API COpcThreadPool : public COpcSynchObject UINT m_uMaxThreads; }; -#endif // _COpcThreadPool_H_ \ No newline at end of file +#endif // _COpcThreadPool_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcVariant.cpp b/Source/Shared/OpcUtilityClasses/COpcVariant.cpp index df8e174..000d7ae 100644 --- a/Source/Shared/OpcUtilityClasses/COpcVariant.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcVariant.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlVariant.cpp -// -// CONTENTS: -// -// A class that wraps a VARIANT structure. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/22 RSA Added additional overloads for OpcWriteVariant(). -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcVariant.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcVariant.h b/Source/Shared/OpcUtilityClasses/COpcVariant.h index 771f5b4..f57b84d 100644 --- a/Source/Shared/OpcUtilityClasses/COpcVariant.h +++ b/Source/Shared/OpcUtilityClasses/COpcVariant.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcVariant.h -// -// CONTENTS: -// -// A class that wraps a VARIANT structure. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/22 RSA Added additional overloads for OpcWriteVariant(). -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcVariant_H_ #define _COpcVariant_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.cpp b/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.cpp index 08f3f79..c1e0f6f 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlAnyType.cpp -// -// CONTENTS: -// -// A class that contains an arbitrary value (simple or complex). -// -// (c) Copyright 2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/09/13 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcXmlAnyType.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.h b/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.h index b24c8ef..0d6adb1 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.h +++ b/Source/Shared/OpcUtilityClasses/COpcXmlAnyType.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlAnyType.h -// -// CONTENTS: -// -// A class that contains an arbitrary value (simple or complex). -// -// (c) Copyright 2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/09/13 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcXmlAnyType_H_ #define _COpcXmlAnyType_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.cpp b/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.cpp index e8b9243..8a98c1b 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlAttribute.cpp -// -// CONTENTS: -// -// A class that represents an XML attribute. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcXmlAttribute.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.h b/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.h index 4135796..51f101c 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.h +++ b/Source/Shared/OpcUtilityClasses/COpcXmlAttribute.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlAttribute.h -// -// CONTENTS: -// -// A class that represents an XML attribute. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcXmlAttribute_H_ #define _COpcXmlAttribute_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlDocument.cpp b/Source/Shared/OpcUtilityClasses/COpcXmlDocument.cpp index 2476d12..252ad8e 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlDocument.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcXmlDocument.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlDocument.cpp -// -// CONTENTS: -// -// A class thatstrings to and from xml data types. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/23 RSA Added XPath based search capabilities. -// 2003/06/25 RSA Fixed memory problems. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcXmlDocument.h" diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlDocument.h b/Source/Shared/OpcUtilityClasses/COpcXmlDocument.h index 492359f..49c56ae 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlDocument.h +++ b/Source/Shared/OpcUtilityClasses/COpcXmlDocument.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlDocument.h -// -// CONTENTS: -// -// A class thatstrings to and from xml data types. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/03/23 RSA Added XPath based search capabilities. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcXmlDocument_H_ #define _COpcXmlDocument_H_ diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlElement.cpp b/Source/Shared/OpcUtilityClasses/COpcXmlElement.cpp index 9933703..b37a000 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlElement.cpp +++ b/Source/Shared/OpcUtilityClasses/COpcXmlElement.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlElement.cpp -// -// CONTENTS: -// -// A class that facilitiates manipulation of XML Elements, -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/06/25 RSA Fixed memory problems. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcXmlElement.h" @@ -1342,4 +1346,4 @@ void COpcXmlElement::SetType(OpcXml::QName cType) // update the type attribute. SetAttribute(cFullName, cTypeName); -} \ No newline at end of file +} diff --git a/Source/Shared/OpcUtilityClasses/COpcXmlElement.h b/Source/Shared/OpcUtilityClasses/COpcXmlElement.h index cc887e1..320ccc9 100644 --- a/Source/Shared/OpcUtilityClasses/COpcXmlElement.h +++ b/Source/Shared/OpcUtilityClasses/COpcXmlElement.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcXmlElement.h -// -// CONTENTS: -// -// A class that facilitiates manipulation of XML Elements, -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcXmlElement_H_ #define _COpcXmlElement_H_ diff --git a/Source/Shared/OpcUtilityClasses/OpcCategory.cpp b/Source/Shared/OpcUtilityClasses/OpcCategory.cpp index 8d51d82..eb8591a 100644 --- a/Source/Shared/OpcUtilityClasses/OpcCategory.cpp +++ b/Source/Shared/OpcUtilityClasses/OpcCategory.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcEnumServers.cpp -// -// CONTENTS: -// -// A class that allows browsing of COM servers by category. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/05/07 RSA Added support for the OPC subkey used by DA1.0 and DA2.0 servers. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "OpcCategory.h" diff --git a/Source/Shared/OpcUtilityClasses/OpcCategory.h b/Source/Shared/OpcUtilityClasses/OpcCategory.h index 2e779e9..9283abd 100644 --- a/Source/Shared/OpcUtilityClasses/OpcCategory.h +++ b/Source/Shared/OpcUtilityClasses/OpcCategory.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcCategory.h -// -// CONTENTS: -// -// Functions that register and lookup component categories. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcCategory_H_ #define _OpcCategory_H_ @@ -85,4 +89,4 @@ struct TClassCategories #define OPC_END_CATEGORY_TABLE() {NULL, NULL, NULL}}; -#endif // _OpcCategory_H_ \ No newline at end of file +#endif // _OpcCategory_H_ diff --git a/Source/Shared/OpcUtilityClasses/OpcDefs.h b/Source/Shared/OpcUtilityClasses/OpcDefs.h index 457521f..582c91e 100644 --- a/Source/Shared/OpcUtilityClasses/OpcDefs.h +++ b/Source/Shared/OpcUtilityClasses/OpcDefs.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcUtils.h -// -// CONTENTS: -// -// Main header for OPC Common library. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcDefs_H_ #define _OpcDefs_H_ diff --git a/Source/Shared/OpcUtilityClasses/OpcMatch.cpp b/Source/Shared/OpcUtilityClasses/OpcMatch.cpp index d9b6322..237f7cf 100644 --- a/Source/Shared/OpcUtilityClasses/OpcMatch.cpp +++ b/Source/Shared/OpcUtilityClasses/OpcMatch.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcMatch.cpp -// -// CONTENTS: -// -// Implements the pattern matching function defined in the OPC Common specification. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/01/31 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "OpcMatch.h" diff --git a/Source/Shared/OpcUtilityClasses/OpcMatch.h b/Source/Shared/OpcUtilityClasses/OpcMatch.h index 4ecb55e..08b0590 100644 --- a/Source/Shared/OpcUtilityClasses/OpcMatch.h +++ b/Source/Shared/OpcUtilityClasses/OpcMatch.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcMatch.h -// -// CONTENTS: -// -// Declares the pattern matching function defined in the OPC Common specification. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/01/31 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcMatch_H_ #define _OpcMatch_H_ @@ -102,4 +106,4 @@ OPCUTILS_API bool OpcMatchPattern( bool bCaseSensitive = false ); -#endif // _OpcMatch_H_ \ No newline at end of file +#endif // _OpcMatch_H_ diff --git a/Source/Shared/OpcUtilityClasses/OpcRegistry.cpp b/Source/Shared/OpcUtilityClasses/OpcRegistry.cpp index 9705e8b..a1b3f86 100644 --- a/Source/Shared/OpcUtilityClasses/OpcRegistry.cpp +++ b/Source/Shared/OpcUtilityClasses/OpcRegistry.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: OpcRegistry.cpp -// -// CONTENTS: -// -// Implementations for registry access functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2003/05/07 RSA Fixed bug in OpcRegDeleteKey(). -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "OpcRegistry.h" diff --git a/Source/Shared/OpcUtilityClasses/OpcRegistry.h b/Source/Shared/OpcUtilityClasses/OpcRegistry.h index 6653eb8..9b1be4c 100644 --- a/Source/Shared/OpcUtilityClasses/OpcRegistry.h +++ b/Source/Shared/OpcUtilityClasses/OpcRegistry.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcRegistry.h -// -// CONTENTS: -// -// Declarations for registry access functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcRegistry_H_ #define _OpcRegistry_H_ diff --git a/Source/Shared/OpcUtilityClasses/OpcUtils.cpp b/Source/Shared/OpcUtilityClasses/OpcUtils.cpp index a807be4..69142ff 100644 --- a/Source/Shared/OpcUtilityClasses/OpcUtils.cpp +++ b/Source/Shared/OpcUtilityClasses/OpcUtils.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcUtils.cpp -// -// CONTENTS: -// -// Implementations of memory allocation functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "OpcDefs.h" diff --git a/Source/Shared/OpcUtilityClasses/OpcUtils.h b/Source/Shared/OpcUtilityClasses/OpcUtils.h index 2aee0e5..b13d427 100644 --- a/Source/Shared/OpcUtilityClasses/OpcUtils.h +++ b/Source/Shared/OpcUtilityClasses/OpcUtils.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcUtils.h -// -// CONTENTS: -// -// Main header for OPC Common library. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcUtils_H_ #define _OpcUtils_H_ diff --git a/Source/Shared/OpcUtilityClasses/OpcXmlType.cpp b/Source/Shared/OpcUtilityClasses/OpcXmlType.cpp index 441edcb..2a1d9db 100644 --- a/Source/Shared/OpcUtilityClasses/OpcXmlType.cpp +++ b/Source/Shared/OpcUtilityClasses/OpcXmlType.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcXmlType.cpp -// -// CONTENTS: -// -// Declarations for common XML constants, types and free functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" @@ -1057,4 +1061,4 @@ template<> bool OpcXml::Write(const GUID& cValue, COpcString& cText) { cText.FromGuid(cValue); return true; -} \ No newline at end of file +} diff --git a/Source/Shared/OpcUtilityClasses/OpcXmlType.h b/Source/Shared/OpcUtilityClasses/OpcXmlType.h index 2e44d8a..f3ec0c4 100644 --- a/Source/Shared/OpcUtilityClasses/OpcXmlType.h +++ b/Source/Shared/OpcUtilityClasses/OpcXmlType.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcXmlType.h -// -// CONTENTS: -// -// Declarations for common XML constants, types and free functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _OpcXmlType_H_ #define _OpcXmlType_H_ diff --git a/Source/Shared/OpcUtilityClasses/StdAfx.cpp b/Source/Shared/OpcUtilityClasses/StdAfx.cpp index c4f72ec..bcc9e02 100644 --- a/Source/Shared/OpcUtilityClasses/StdAfx.cpp +++ b/Source/Shared/OpcUtilityClasses/StdAfx.cpp @@ -1,28 +1,32 @@ -//============================================================================== -// TITLE: StdAfx.cpp -// -// CONTENTS: -// -// This file includes StdAfx.h and is used to create the pre-compiled headers. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" -#include "opccomn_i.c" \ No newline at end of file +#include "opccomn_i.c" diff --git a/Source/Shared/OpcUtilityClasses/StdAfx.h b/Source/Shared/OpcUtilityClasses/StdAfx.h index 07e2f94..8340188 100644 --- a/Source/Shared/OpcUtilityClasses/StdAfx.h +++ b/Source/Shared/OpcUtilityClasses/StdAfx.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: StdAfx.h -// -// CONTENTS: -// -// This file standard precompiled include files. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _StdAfx_H #define _StdAfx_H diff --git a/Source/Shared/OpcUtilityClasses/resource.h b/Source/Shared/OpcUtilityClasses/resource.h index 74b9f51..11cb790 100644 --- a/Source/Shared/OpcUtilityClasses/resource.h +++ b/Source/Shared/OpcUtilityClasses/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by OpcUtils.rc diff --git a/Source/Common/SampleDevice/COpcDaDevice.cpp b/Source/Shared/SampleDevice/COpcDaDevice.cpp similarity index 87% rename from Source/Common/SampleDevice/COpcDaDevice.cpp rename to Source/Shared/SampleDevice/COpcDaDevice.cpp index 2034f06..749b287 100644 --- a/Source/Common/SampleDevice/COpcDaDevice.cpp +++ b/Source/Shared/SampleDevice/COpcDaDevice.cpp @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaDevice.cpp -// -// CONTENTS: -// -// Simulates a simple I/O device. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaDevice.h" diff --git a/Source/Common/SampleDevice/COpcDaDevice.h b/Source/Shared/SampleDevice/COpcDaDevice.h similarity index 69% rename from Source/Common/SampleDevice/COpcDaDevice.h rename to Source/Shared/SampleDevice/COpcDaDevice.h index a77485d..1d9c6fe 100644 --- a/Source/Common/SampleDevice/COpcDaDevice.h +++ b/Source/Shared/SampleDevice/COpcDaDevice.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaDevice.h -// -// CONTENTS: -// -// Simulates a simple I/O device. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaDevice_H_ #define _COpcDaDevice_H_ diff --git a/Source/Common/SampleDevice/COpcDaDeviceItem.cpp b/Source/Shared/SampleDevice/COpcDaDeviceItem.cpp similarity index 96% rename from Source/Common/SampleDevice/COpcDaDeviceItem.cpp rename to Source/Shared/SampleDevice/COpcDaDeviceItem.cpp index fdae580..51c7b23 100644 --- a/Source/Common/SampleDevice/COpcDaDeviceItem.cpp +++ b/Source/Shared/SampleDevice/COpcDaDeviceItem.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcDaDeviceItem.cpp -// -// CONTENTS: -// -// A single simulated I/O point. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaDeviceItem.h" diff --git a/Source/Common/SampleDevice/COpcDaDeviceItem.h b/Source/Shared/SampleDevice/COpcDaDeviceItem.h similarity index 84% rename from Source/Common/SampleDevice/COpcDaDeviceItem.h rename to Source/Shared/SampleDevice/COpcDaDeviceItem.h index 5ef8e1d..a590c18 100644 --- a/Source/Common/SampleDevice/COpcDaDeviceItem.h +++ b/Source/Shared/SampleDevice/COpcDaDeviceItem.h @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcDaDeviceItem.h -// -// CONTENTS: -// -// A single simulated I/O point. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/09 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaDeviceItem_H_ #define _COpcDaDeviceItem_H_ diff --git a/Source/Common/SampleDevice/OPC DA Sample Device.vcproj b/Source/Shared/SampleDevice/OPC DA Sample Device.vcproj similarity index 100% rename from Source/Common/SampleDevice/OPC DA Sample Device.vcproj rename to Source/Shared/SampleDevice/OPC DA Sample Device.vcproj diff --git a/Source/Shared/SampleDevice/StdAfx.cpp b/Source/Shared/SampleDevice/StdAfx.cpp new file mode 100644 index 0000000..5c1662b --- /dev/null +++ b/Source/Shared/SampleDevice/StdAfx.cpp @@ -0,0 +1,30 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" diff --git a/Source/Shared/SampleDevice/StdAfx.h b/Source/Shared/SampleDevice/StdAfx.h new file mode 100644 index 0000000..e825370 --- /dev/null +++ b/Source/Shared/SampleDevice/StdAfx.h @@ -0,0 +1,52 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _StdAfx_H +#define _StdAfx_H + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +// Insert your headers here +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +#include +#include +#include +#include +#include +#include + +#include "OpcUtils.h" + +#include "opcda.h" +#include "opcerror.h" + +#endif // _StdAfx_H diff --git a/Source/Common/SampleServer205/COpcDa20Cache.cpp b/Source/Shared/SampleServer205/COpcDa20Cache.cpp similarity index 66% rename from Source/Common/SampleServer205/COpcDa20Cache.cpp rename to Source/Shared/SampleServer205/COpcDa20Cache.cpp index ec6528d..27cd654 100644 --- a/Source/Common/SampleServer205/COpcDa20Cache.cpp +++ b/Source/Shared/SampleServer205/COpcDa20Cache.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: CXmlDaSourceCache.cpp -// -// CONTENTS: -// -// A concrete instance of a OPC Data Server cache. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDa20Cache.h" diff --git a/Source/Shared/SampleServer205/COpcDa20Cache.h b/Source/Shared/SampleServer205/COpcDa20Cache.h new file mode 100644 index 0000000..2f1c06d --- /dev/null +++ b/Source/Shared/SampleServer205/COpcDa20Cache.h @@ -0,0 +1,89 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcDaEngine_H_ +#define _COpcDaEngine_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "COpcDaCache.h" +#include "COpcDaDevice.h" + +//============================================================================== +// CLASS: COpcDaCache +// PURPOSE: A concrete instance of a OPC Data Server cache. + +class COpcDa20Cache : public COpcDaCache +{ + OPC_CLASS_NEW_DELETE() + +public: + + //========================================================================== + // Public Operators + + // Constructor + COpcDa20Cache(COpcDaDevice& cDevice) : m_cDevice(cDevice) {} + + // Destructor + ~COpcDa20Cache() {} + + //========================================================================= + // Public Methods + + // Start + virtual bool Start(); + + // Stop + virtual void Stop(); + + // Load + virtual bool Load(COpcXmlElement& cRoot); + +private: + + //========================================================================== + // Private Members + + COpcDaDevice& m_cDevice; +}; + + +//============================================================================== +// Global Functions + +// Initialize +extern bool Initialize(); + +// Uninitialize +extern void Uninitialize(); + +#endif // _COpcDaEngine_H_ diff --git a/Source/Shared/SampleServer205/COpcDa20Group.h b/Source/Shared/SampleServer205/COpcDa20Group.h new file mode 100644 index 0000000..4a6b960 --- /dev/null +++ b/Source/Shared/SampleServer205/COpcDa20Group.h @@ -0,0 +1,69 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcDa20Group_H_ +#define _COpcDa20Group_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "COpcDaGroup.h" + +//============================================================================ +// CLASS: COpcDa20Group +// PURPOSE: A class that implements the IOPCServer interface. +// NOTES: + +class COpcDa20Group : public COpcDaGroup +{ + OPC_CLASS_NEW_DELETE() + + OPC_BEGIN_INTERFACE_TABLE(COpcDa20Group) + OPC_INTERFACE_ENTRY(IConnectionPointContainer) + OPC_INTERFACE_ENTRY(IOPCItemMgt) + OPC_INTERFACE_ENTRY(IOPCSyncIO) + OPC_INTERFACE_ENTRY(IOPCAsyncIO2) + OPC_INTERFACE_ENTRY(IOPCGroupStateMgt) + OPC_END_INTERFACE_TABLE() + +public: + + //========================================================================= + // Operators + + // Constructor + COpcDa20Group() {} + COpcDa20Group(COpcDaServer& cServer, const COpcString& cName) : COpcDaGroup(cServer, cName) {} + + // Destructor + ~COpcDa20Group() { Clear(); } +}; + +#endif // _COpcDa20Group_H_ diff --git a/Source/Shared/SampleServer205/COpcDa20Server.cpp b/Source/Shared/SampleServer205/COpcDa20Server.cpp new file mode 100644 index 0000000..578c81e --- /dev/null +++ b/Source/Shared/SampleServer205/COpcDa20Server.cpp @@ -0,0 +1,54 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" +#include "COpcDa20Server.h" +#include "COpcDa20Cache.h" + +//============================================================================== +// COpcDa20Server + +// FinalConstruct +HRESULT COpcDa20Server::FinalConstruct() +{ + if (!Initialize()) + { + return E_FAIL; + } + + return COpcDaServer::FinalConstruct(); +} + +// FinalRelease +bool COpcDa20Server::FinalRelease() +{ + COpcDaServer::FinalRelease(); + Uninitialize(); + return true; +} diff --git a/Source/Shared/SampleServer205/COpcDa20Server.h b/Source/Shared/SampleServer205/COpcDa20Server.h new file mode 100644 index 0000000..c65d896 --- /dev/null +++ b/Source/Shared/SampleServer205/COpcDa20Server.h @@ -0,0 +1,86 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcDa20Server_H_ +#define _COpcDa20Server_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "COpcDaServer.h" + +#include "OpcDa20Server.h" +#include "COpcDa20Group.h" + +//============================================================================ +// CLASS: COpcDa20Server +// PURPOSE: A class that implements the IOPCServer interface. + +class COpcDa20Server : + public COpcComObject, + public COpcDaServer +{ + OPC_CLASS_NEW_DELETE() + + OPC_BEGIN_INTERFACE_TABLE(COpcDa20Server) + OPC_INTERFACE_ENTRY(IOPCCommon) + OPC_INTERFACE_ENTRY(IConnectionPointContainer) + OPC_INTERFACE_ENTRY(IOPCServer) + OPC_INTERFACE_ENTRY(IOPCBrowseServerAddressSpace) + OPC_INTERFACE_ENTRY(IOPCItemProperties) + OPC_INTERFACE_ENTRY(IOPCSecurityNT) + OPC_INTERFACE_ENTRY(IOPCSecurityPrivate) + OPC_END_INTERFACE_TABLE() + +public: + + //========================================================================== + // Operators + + // Constructor + COpcDa20Server() {} + + // Destructor + ~COpcDa20Server() {} + + //========================================================================= + // Public Methods + + // FinalConstruct + virtual HRESULT FinalConstruct(); + + // FinalRelease + virtual bool FinalRelease(); + + // CreateGroup + virtual COpcDaGroup* CreateGroup(COpcDaServer& cServer, const COpcString& cName) { return new COpcDa20Group(cServer, cName); } +}; + +#endif // _COpcDa20Server_H_ diff --git a/Source/Common/SampleServer205/OPC DA 2.05 Sample Server.vcproj b/Source/Shared/SampleServer205/OPC DA 2.05 Sample Server.vcproj similarity index 100% rename from Source/Common/SampleServer205/OPC DA 2.05 Sample Server.vcproj rename to Source/Shared/SampleServer205/OPC DA 2.05 Sample Server.vcproj diff --git a/Source/Common/SampleServer205/OpcDa20Server.binary.xml b/Source/Shared/SampleServer205/OpcDa20Server.binary.xml similarity index 100% rename from Source/Common/SampleServer205/OpcDa20Server.binary.xml rename to Source/Shared/SampleServer205/OpcDa20Server.binary.xml diff --git a/Source/Common/SampleServer205/OpcDa20Server.config.xml b/Source/Shared/SampleServer205/OpcDa20Server.config.xml similarity index 100% rename from Source/Common/SampleServer205/OpcDa20Server.config.xml rename to Source/Shared/SampleServer205/OpcDa20Server.config.xml diff --git a/Source/Shared/SampleServer205/OpcDa20Server.cpp b/Source/Shared/SampleServer205/OpcDa20Server.cpp new file mode 100644 index 0000000..187b0e6 --- /dev/null +++ b/Source/Shared/SampleServer205/OpcDa20Server.cpp @@ -0,0 +1,83 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" +#include "COpcDa20Server.h" +#pragma warning(disable:4192) + +//================================================================================ +// COM Module Declarations + +OPC_DECLARE_APPLICATION(OPCSample, OpcDa20Server, "OPC Data Access 2.05a Sample Server") + +OPC_BEGIN_CLASS_TABLE() + OPC_CLASS_TABLE_ENTRY(COpcDa20Server, OpcDa20Server, 1, "OPC Data Access 2.05a Source Server") +OPC_END_CLASS_TABLE() + +OPC_BEGIN_CATEGORY_TABLE() + OPC_CATEGORY_TABLE_ENTRY(OpcDa20Server, CATID_OPCDAServer20, OPC_CATEGORY_DESCRIPTION_DA20) +OPC_END_CATEGORY_TABLE() + +#ifndef _USRDLL + +// {725536FD-452C-44a1-97FE-490AC0F14AD5} +OPC_IMPLEMENT_LOCAL_SERVER(0x725536fd, 0x452c, 0x44a1, 0x97, 0xfe, 0x49, 0xa, 0xc0, 0xf1, 0x4a, 0xd5); + +//================================================================================ +// WinMain + +extern "C" int WINAPI _tWinMain( + HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPTSTR lpCmdLine, + int nShowCmd +) +{ + OPC_START_LOCAL_SERVER_EX(hInstance, lpCmdLine); + return 0; +} + +#else + +OPC_IMPLEMENT_INPROC_SERVER(); + +//============================================================================== +// DllMain + +extern "C" +BOOL WINAPI DllMain( + HINSTANCE hModule, + DWORD dwReason, + LPVOID lpReserved) +{ + OPC_START_INPROC_SERVER(hModule, dwReason); + return TRUE; +} + +#endif // _USRDLL diff --git a/Source/Common/SampleServer205/OpcDa20Server.ico b/Source/Shared/SampleServer205/OpcDa20Server.ico similarity index 100% rename from Source/Common/SampleServer205/OpcDa20Server.ico rename to Source/Shared/SampleServer205/OpcDa20Server.ico diff --git a/Source/Shared/SampleServer205/OpcDa20Server.idl b/Source/Shared/SampleServer205/OpcDa20Server.idl new file mode 100644 index 0000000..9df22d8 --- /dev/null +++ b/Source/Shared/SampleServer205/OpcDa20Server.idl @@ -0,0 +1,51 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +import "opccomn.idl"; +import "opcda.idl"; + +[ + uuid(B028E06D-8C76-4f93-B12A-A3686CBB1E12), + version(1.0) +] +library OpcDa20ServerLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(B028E06E-8C76-4f93-B12A-A3686CBB1E12), + helpstring("OPC Data Access 2.05a Source Server") + ] + coclass OpcDa20Server + { + [default] interface IOPCServer; + [source] interface IOPCShutdown; + }; +}; diff --git a/Source/Common/SampleServer205/OpcDa20Server.rc b/Source/Shared/SampleServer205/OpcDa20Server.rc similarity index 100% rename from Source/Common/SampleServer205/OpcDa20Server.rc rename to Source/Shared/SampleServer205/OpcDa20Server.rc diff --git a/Source/Shared/SampleServer205/StdAfx.cpp b/Source/Shared/SampleServer205/StdAfx.cpp new file mode 100644 index 0000000..eb527dd --- /dev/null +++ b/Source/Shared/SampleServer205/StdAfx.cpp @@ -0,0 +1,33 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" + +#include "opccomn_i.c" +#include "opcda_i.c" diff --git a/Source/Shared/SampleServer205/StdAfx.h b/Source/Shared/SampleServer205/StdAfx.h new file mode 100644 index 0000000..067e985 --- /dev/null +++ b/Source/Shared/SampleServer205/StdAfx.h @@ -0,0 +1,49 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _StdAfx_H +#define _StdAfx_H + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +// Insert your headers here +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +#include +#include +#include +#include +#include +#include + +#include "OpcUtils.h" + +#endif // _StdAfx_H diff --git a/Source/Common/SampleServer205/build.timestamp b/Source/Shared/SampleServer205/build.timestamp similarity index 100% rename from Source/Common/SampleServer205/build.timestamp rename to Source/Shared/SampleServer205/build.timestamp diff --git a/Source/Common/SampleServer205/resource.h b/Source/Shared/SampleServer205/resource.h similarity index 62% rename from Source/Common/SampleServer205/resource.h rename to Source/Shared/SampleServer205/resource.h index cf9ac7a..0501ff6 100644 --- a/Source/Common/SampleServer205/resource.h +++ b/Source/Shared/SampleServer205/resource.h @@ -1,3 +1,32 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by OpcDa20Server.rc diff --git a/Source/Common/SampleServerClasses/COpcBinary.cpp b/Source/Shared/SampleServerClasses/COpcBinary.cpp similarity index 87% rename from Source/Common/SampleServerClasses/COpcBinary.cpp rename to Source/Shared/SampleServerClasses/COpcBinary.cpp index 1207d20..9994a28 100644 --- a/Source/Common/SampleServerClasses/COpcBinary.cpp +++ b/Source/Shared/SampleServerClasses/COpcBinary.cpp @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcBinary.cpp -// -// CONTENTS: -// -// A classes that stores the OPCBinary schema components in memory. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/06/20 RSA Initial implementation. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcBinary.h" @@ -351,4 +356,4 @@ bool COpcTypeDictionary::Write(COpcXmlElement& cElement) // not implemented. return false; -} \ No newline at end of file +} diff --git a/Source/Common/SampleServerClasses/COpcBinary.h b/Source/Shared/SampleServerClasses/COpcBinary.h similarity index 81% rename from Source/Common/SampleServerClasses/COpcBinary.h rename to Source/Shared/SampleServerClasses/COpcBinary.h index 16717df..0124118 100644 --- a/Source/Common/SampleServerClasses/COpcBinary.h +++ b/Source/Shared/SampleServerClasses/COpcBinary.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcBinary.h -// -// CONTENTS: -// -// A classes that stores the OPCBinary schema components in memory. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA Initial implementation. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcBinary_H #define _COpcBinary_H diff --git a/Source/Common/SampleServerClasses/COpcBinaryReader.cpp b/Source/Shared/SampleServerClasses/COpcBinaryReader.cpp similarity index 93% rename from Source/Common/SampleServerClasses/COpcBinaryReader.cpp rename to Source/Shared/SampleServerClasses/COpcBinaryReader.cpp index 93ed972..808f337 100644 --- a/Source/Common/SampleServerClasses/COpcBinaryReader.cpp +++ b/Source/Shared/SampleServerClasses/COpcBinaryReader.cpp @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcBinaryReader.cs -// -// CONTENTS: -// -// A class that reads a complex data item from a binary buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcBinaryReader.h" diff --git a/Source/Common/SampleServerClasses/COpcBinaryReader.h b/Source/Shared/SampleServerClasses/COpcBinaryReader.h similarity index 69% rename from Source/Common/SampleServerClasses/COpcBinaryReader.h rename to Source/Shared/SampleServerClasses/COpcBinaryReader.h index a4a0586..55e68d9 100644 --- a/Source/Common/SampleServerClasses/COpcBinaryReader.h +++ b/Source/Shared/SampleServerClasses/COpcBinaryReader.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcBinaryReader.h -// -// CONTENTS: -// -// A class that reads a complex data item from a binary buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcBinaryReader_H #define _COpcBinaryReader_H diff --git a/Source/Common/SampleServerClasses/COpcBinaryStream.cpp b/Source/Shared/SampleServerClasses/COpcBinaryStream.cpp similarity index 82% rename from Source/Common/SampleServerClasses/COpcBinaryStream.cpp rename to Source/Shared/SampleServerClasses/COpcBinaryStream.cpp index 593374f..8aeddef 100644 --- a/Source/Common/SampleServerClasses/COpcBinaryStream.cpp +++ b/Source/Shared/SampleServerClasses/COpcBinaryStream.cpp @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcBinaryStream.cpp -// -// CONTENTS: -// -// A class that reads a complex data item from a binary buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcBinaryStream.h" diff --git a/Source/Common/SampleServerClasses/COpcBinaryStream.h b/Source/Shared/SampleServerClasses/COpcBinaryStream.h similarity index 74% rename from Source/Common/SampleServerClasses/COpcBinaryStream.h rename to Source/Shared/SampleServerClasses/COpcBinaryStream.h index 2362bee..4e2e481 100644 --- a/Source/Common/SampleServerClasses/COpcBinaryStream.h +++ b/Source/Shared/SampleServerClasses/COpcBinaryStream.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcBinaryReader.h -// -// CONTENTS: -// -// A class that reads a complex data item from a binary buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcBinaryStream_H #define _COpcBinaryStream_H diff --git a/Source/Common/SampleServerClasses/COpcBinaryWriter.cpp b/Source/Shared/SampleServerClasses/COpcBinaryWriter.cpp similarity index 93% rename from Source/Common/SampleServerClasses/COpcBinaryWriter.cpp rename to Source/Shared/SampleServerClasses/COpcBinaryWriter.cpp index 4ec0db4..617a9db 100644 --- a/Source/Common/SampleServerClasses/COpcBinaryWriter.cpp +++ b/Source/Shared/SampleServerClasses/COpcBinaryWriter.cpp @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: BinaryWriter.cpp -// -// CONTENTS: -// -// A class that writes a complex data item to a binary pBuffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcBinaryWriter.h" diff --git a/Source/Common/SampleServerClasses/COpcBinaryWriter.h b/Source/Shared/SampleServerClasses/COpcBinaryWriter.h similarity index 68% rename from Source/Common/SampleServerClasses/COpcBinaryWriter.h rename to Source/Shared/SampleServerClasses/COpcBinaryWriter.h index 2a92cfb..700d1f2 100644 --- a/Source/Common/SampleServerClasses/COpcBinaryWriter.h +++ b/Source/Shared/SampleServerClasses/COpcBinaryWriter.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: BinaryWriter.h -// -// CONTENTS: -// -// A class that writes a complex data item to a binary buffer. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/10/01 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcBinaryWriter_H #define _COpcBinaryWriter_H @@ -157,4 +162,4 @@ class COpcBinaryWriter : public COpcBinaryStream ); }; -#endif // _COpcBinaryWriter_H \ No newline at end of file +#endif // _COpcBinaryWriter_H diff --git a/Source/Common/SampleServerClasses/COpcDaBrowseElement.cpp b/Source/Shared/SampleServerClasses/COpcDaBrowseElement.cpp similarity index 51% rename from Source/Common/SampleServerClasses/COpcDaBrowseElement.cpp rename to Source/Shared/SampleServerClasses/COpcDaBrowseElement.cpp index b826686..97d3abe 100644 --- a/Source/Common/SampleServerClasses/COpcDaBrowseElement.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaBrowseElement.cpp @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaBrowseElement.cpp -// -// CONTENTS: -// -// A single element in the OPC server namespace. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaBrowseElement.h" diff --git a/Source/Shared/SampleServerClasses/COpcDaBrowseElement.h b/Source/Shared/SampleServerClasses/COpcDaBrowseElement.h new file mode 100644 index 0000000..13ac7df --- /dev/null +++ b/Source/Shared/SampleServerClasses/COpcDaBrowseElement.h @@ -0,0 +1,75 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcDaBrowseElement_H_ +#define _COpcDaBrowseElement_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +//============================================================================ +// CLASS: COpcDaBrowseElement +// PURPOSE: Describes an element in the server namespace. + +class COpcDaBrowseElement : public COpcBrowseElement +{ + OPC_CLASS_NEW_DELETE() + +public: + + //======================================================================== + // Public Operators + + // Constructor + COpcDaBrowseElement(COpcDaBrowseElement* pParent); + + // Destructor + ~COpcDaBrowseElement() { Clear(); } + + //======================================================================== + // Public Methods + + // Browse + void Browse( + OPCBROWSETYPE eType, + const COpcString& cPath, + COpcStringList& cNodes + ); + +protected: + + //======================================================================== + // Protected Methods + + // CreateInstance + virtual COpcBrowseElement* CreateInstance(); +}; + +#endif // _COpcDaBrowseElement_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaBuffer.h b/Source/Shared/SampleServerClasses/COpcDaBuffer.h similarity index 77% rename from Source/Common/SampleServerClasses/COpcDaBuffer.h rename to Source/Shared/SampleServerClasses/COpcDaBuffer.h index 73b2a5e..c7b72ef 100644 --- a/Source/Common/SampleServerClasses/COpcDaBuffer.h +++ b/Source/Shared/SampleServerClasses/COpcDaBuffer.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaBuffer.h -// -// CONTENTS: -// -// A rotating buffer of OPC items. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaBuffer_H_ #define _COpcDaBuffer_H_ @@ -257,4 +260,4 @@ class COpcDaBuffer bool m_bOverflow; }; -#endif // _COpcDaBuffer_H_ \ No newline at end of file +#endif // _COpcDaBuffer_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaCache.cpp b/Source/Shared/SampleServerClasses/COpcDaCache.cpp similarity index 95% rename from Source/Common/SampleServerClasses/COpcDaCache.cpp rename to Source/Shared/SampleServerClasses/COpcDaCache.cpp index 1de8887..270fe38 100644 --- a/Source/Common/SampleServerClasses/COpcDaCache.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaCache.cpp @@ -1,31 +1,31 @@ -//============================================================================== -// TITLE: COpcDaCache.h -// -// CONTENTS: -// -// The global item cache for an OPC server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/22 RSA Added support for complex data. -// 2003/04/08 RSA Added check to prevent item ids from being returned for basic properties. -// 2003/05/06 RSA Added check for empty strings when parsing item ids. -// 2003/06/25 RSA Fixed memory problems and fetched server info from resource block. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaCache.h" diff --git a/Source/Common/SampleServerClasses/COpcDaCache.h b/Source/Shared/SampleServerClasses/COpcDaCache.h similarity index 84% rename from Source/Common/SampleServerClasses/COpcDaCache.h rename to Source/Shared/SampleServerClasses/COpcDaCache.h index aab1a45..04641c9 100644 --- a/Source/Common/SampleServerClasses/COpcDaCache.h +++ b/Source/Shared/SampleServerClasses/COpcDaCache.h @@ -1,30 +1,31 @@ -//============================================================================ -// TITLE: COpcDaCache.h -// -// CONTENTS: -// -// The global item cache for an OPC server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/22 RSA Added support for complex data. -// 2003/04/08 RSA Added check to prevent item ids from being returned for basic properties. -// 2003/06/25 RSA Fixed memory problems and fetched server info from resource block. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaCache_H_ #define _COpcDaCache_H_ @@ -333,4 +334,4 @@ class COpcDaCache : public IOpcDaDevice, public COpcSynchObject extern COpcDaCache& GetCache(); -#endif // _COpcDaCache_H_ \ No newline at end of file +#endif // _COpcDaCache_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaCacheItem.cpp b/Source/Shared/SampleServerClasses/COpcDaCacheItem.cpp similarity index 90% rename from Source/Common/SampleServerClasses/COpcDaCacheItem.cpp rename to Source/Shared/SampleServerClasses/COpcDaCacheItem.cpp index 7ea9252..778a412 100644 --- a/Source/Common/SampleServerClasses/COpcDaCacheItem.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaCacheItem.cpp @@ -1,29 +1,31 @@ -//============================================================================ -// TITLE: COpcDaCacheItem.cpp -// -// CONTENTS: -// -// A single item in the global cache for an OPC server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/22 RSA Added support for complex data. -// 2003/06/25 RSA Fixed memory problems. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaCacheItem.h" @@ -695,4 +697,4 @@ HRESULT COpcDaCacheItem::FromEnumValue( } return S_OK; -} \ No newline at end of file +} diff --git a/Source/Common/SampleServerClasses/COpcDaCacheItem.h b/Source/Shared/SampleServerClasses/COpcDaCacheItem.h similarity index 72% rename from Source/Common/SampleServerClasses/COpcDaCacheItem.h rename to Source/Shared/SampleServerClasses/COpcDaCacheItem.h index 0ad3adf..77a687c 100644 --- a/Source/Common/SampleServerClasses/COpcDaCacheItem.h +++ b/Source/Shared/SampleServerClasses/COpcDaCacheItem.h @@ -1,29 +1,31 @@ -//============================================================================ -// TITLE: COpcDaCacheItem.h -// -// CONTENTS: -// -// A single item in the global cache for an OPC server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/22 RSA Added support for complex data. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaCacheItem_H_ #define _COpcDaCacheItem_H_ @@ -189,4 +191,4 @@ class COpcDaCacheItem typedef COpcMap COpcDaCacheItemMap; -#endif // _COpcDaCacheItem_H_ \ No newline at end of file +#endif // _COpcDaCacheItem_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaEnumGroup.h b/Source/Shared/SampleServerClasses/COpcDaEnumGroup.h similarity index 53% rename from Source/Common/SampleServerClasses/COpcDaEnumGroup.h rename to Source/Shared/SampleServerClasses/COpcDaEnumGroup.h index c5c8b50..e6727ae 100644 --- a/Source/Common/SampleServerClasses/COpcDaEnumGroup.h +++ b/Source/Shared/SampleServerClasses/COpcDaEnumGroup.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaEnumGroup.h -// -// CONTENTS: -// -// An implementation of the IEnumConnectionPoints interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaEnumGroup_H_ #define _COpcDaEnumGroup_H_ @@ -102,4 +105,4 @@ class COpcDaEnumGroup OPCITEMATTRIBUTES* m_pItems; }; -#endif // _COpcDaEnumGroup_H_ \ No newline at end of file +#endif // _COpcDaEnumGroup_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaEnumItem.cpp b/Source/Shared/SampleServerClasses/COpcDaEnumItem.cpp similarity index 71% rename from Source/Common/SampleServerClasses/COpcDaEnumItem.cpp rename to Source/Shared/SampleServerClasses/COpcDaEnumItem.cpp index bf88518..ae834f8 100644 --- a/Source/Common/SampleServerClasses/COpcDaEnumItem.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaEnumItem.cpp @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaEnumItem.cpp -// -// CONTENTS: -// -// An implementation of the IEnumOPCItemAttributes interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaEnumItem.h" diff --git a/Source/Common/SampleServerClasses/COpcDaEnumItem.h b/Source/Shared/SampleServerClasses/COpcDaEnumItem.h similarity index 53% rename from Source/Common/SampleServerClasses/COpcDaEnumItem.h rename to Source/Shared/SampleServerClasses/COpcDaEnumItem.h index 619b1e2..4a040cb 100644 --- a/Source/Common/SampleServerClasses/COpcDaEnumItem.h +++ b/Source/Shared/SampleServerClasses/COpcDaEnumItem.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaEnumItem.h -// -// CONTENTS: -// -// An implementation of the IEnumOPCItemAttributes interface. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaEnumItem_H_ #define _COpcDaEnumItem_H_ @@ -102,4 +105,4 @@ class COpcDaEnumItem OPCITEMATTRIBUTES* m_pItems; }; -#endif // _COpcDaEnumItem_H_ \ No newline at end of file +#endif // _COpcDaEnumItem_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaGroup.cpp b/Source/Shared/SampleServerClasses/COpcDaGroup.cpp similarity index 97% rename from Source/Common/SampleServerClasses/COpcDaGroup.cpp rename to Source/Shared/SampleServerClasses/COpcDaGroup.cpp index 9b84b2c..93cc45f 100644 --- a/Source/Common/SampleServerClasses/COpcDaGroup.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaGroup.cpp @@ -1,29 +1,31 @@ -//============================================================================ -// TITLE: COpcDaGroup.cpp -// -// CONTENTS: -// -// A group object for an OPC Data Access server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/05/05 RSA Fixed return codes for GetItemDeadBands() and SetItemDeadBands(). -// 2003/06/25 RSA Ensured asynchronous write requests are processed in order. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaGroup.h" diff --git a/Source/Common/SampleServerClasses/COpcDaGroup.h b/Source/Shared/SampleServerClasses/COpcDaGroup.h similarity index 88% rename from Source/Common/SampleServerClasses/COpcDaGroup.h rename to Source/Shared/SampleServerClasses/COpcDaGroup.h index d7bfb33..bed6f3b 100644 --- a/Source/Common/SampleServerClasses/COpcDaGroup.h +++ b/Source/Shared/SampleServerClasses/COpcDaGroup.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaGroup.h -// -// CONTENTS: -// -// A group object for an OPC Data Access server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaGroup_H_ #define _COpcDaGroup_H_ @@ -464,4 +467,4 @@ class COpcDaGroup : typedef COpcMap COpcDaGroupMap; -#endif // _COpcDaGroup_H_ \ No newline at end of file +#endif // _COpcDaGroup_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaGroupItem.cpp b/Source/Shared/SampleServerClasses/COpcDaGroupItem.cpp similarity index 89% rename from Source/Common/SampleServerClasses/COpcDaGroupItem.cpp rename to Source/Shared/SampleServerClasses/COpcDaGroupItem.cpp index 0b4ce12..7c4a6af 100644 --- a/Source/Common/SampleServerClasses/COpcDaGroupItem.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaGroupItem.cpp @@ -1,30 +1,31 @@ -//============================================================================ -// TITLE: COpcDaGroupItem.cpp -// -// CONTENTS: -// -// A single item in a group in an OPC server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/07/23 RSA Fixed problem with update and sample time calculations. -// 2003/08/11 RSA Added check to ensure errors are only returned once. -// 2003/08/15 RSA Fixed problem with update and sample time calculations again. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaGroupItem.h" diff --git a/Source/Common/SampleServerClasses/COpcDaGroupItem.h b/Source/Shared/SampleServerClasses/COpcDaGroupItem.h similarity index 74% rename from Source/Common/SampleServerClasses/COpcDaGroupItem.h rename to Source/Shared/SampleServerClasses/COpcDaGroupItem.h index 0d87493..b2027e4 100644 --- a/Source/Common/SampleServerClasses/COpcDaGroupItem.h +++ b/Source/Shared/SampleServerClasses/COpcDaGroupItem.h @@ -1,30 +1,31 @@ -//============================================================================ -// TITLE: COpcDaGroupItem.h -// -// CONTENTS: -// -// A single item in a group in an OPC server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/07/23 RSA Fixed problem with update and sample time calculations. -// 2003/08/11 RSA Added check to ensure errors are only returned once. -// 2003/08/15 RSA Fixed problem with update and sample time calculations again. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaGroupItem_H_ #define _COpcDaGroupItem_H_ @@ -202,4 +203,4 @@ class COpcDaGroupItem typedef COpcMap COpcDaGroupItemMap; -#endif // _COpcDaGroupItem_H_ \ No newline at end of file +#endif // _COpcDaGroupItem_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaProperty.cpp b/Source/Shared/SampleServerClasses/COpcDaProperty.cpp similarity index 91% rename from Source/Common/SampleServerClasses/COpcDaProperty.cpp rename to Source/Shared/SampleServerClasses/COpcDaProperty.cpp index 4f60e6d..647a37c 100644 --- a/Source/Common/SampleServerClasses/COpcDaProperty.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaProperty.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcDaProperty.cpp -// -// CONTENTS: -// -// Tables that describe all well known item properties. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaProperty.h" diff --git a/Source/Common/SampleServerClasses/COpcDaProperty.h b/Source/Shared/SampleServerClasses/COpcDaProperty.h similarity index 79% rename from Source/Common/SampleServerClasses/COpcDaProperty.h rename to Source/Shared/SampleServerClasses/COpcDaProperty.h index b719005..332c9a2 100644 --- a/Source/Common/SampleServerClasses/COpcDaProperty.h +++ b/Source/Shared/SampleServerClasses/COpcDaProperty.h @@ -1,28 +1,31 @@ -//============================================================================ -// TITLE: COpcDaProperty.h -// -// CONTENTS: -// -// Constants that describe all well known item properties. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaProperty_H_ #define _COpcDaProperty_H_ @@ -216,4 +219,4 @@ COpcString OpcConstructItemID(LPCWSTR szItemID, DWORD dwPropertyID); #define OPC_PROPERTY_SIMULATION_COUNT 5001 #define OPC_PROPERTY_SIMULATION_TIMESTAMP 5002 -#endif // _COpcDaProperty_H_ \ No newline at end of file +#endif // _COpcDaProperty_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaServer.cpp b/Source/Shared/SampleServerClasses/COpcDaServer.cpp similarity index 95% rename from Source/Common/SampleServerClasses/COpcDaServer.cpp rename to Source/Shared/SampleServerClasses/COpcDaServer.cpp index f683370..e927c35 100644 --- a/Source/Common/SampleServerClasses/COpcDaServer.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaServer.cpp @@ -1,34 +1,31 @@ -//============================================================================ -// TITLE: COpcDaServer.cpp -// -// CONTENTS: -// -// Implements an OPC Data Access server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/09 RSA Made autogenerated group names more user friendly. -// 2003/03/21 RSA Fixed incorrect loop in LookupItemIDs(). -// 2003/04/08 RSA Added check to prevent item ids from being returned for basic properties. -// 2003/05/06 RSA Fixed return code problem in Browse(). -// 2003/05/13 RSA Added support for 2.0 only servers. -// 2003/06/25 RSA Fetch server information for the resource block now. -// 2003/07/30 TK Corrected problem with group counter. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaServer.h" diff --git a/Source/Common/SampleServerClasses/COpcDaServer.h b/Source/Shared/SampleServerClasses/COpcDaServer.h similarity index 81% rename from Source/Common/SampleServerClasses/COpcDaServer.h rename to Source/Shared/SampleServerClasses/COpcDaServer.h index de5696b..d5c9f73 100644 --- a/Source/Common/SampleServerClasses/COpcDaServer.h +++ b/Source/Shared/SampleServerClasses/COpcDaServer.h @@ -1,30 +1,31 @@ -//============================================================================ -// TITLE: COpcDaServer.h -// -// CONTENTS: -// -// Implements an OPC Data Access server. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/09 RSA Made autogenerated group names more user friendly. -// 2003/05/13 RSA Added support for 2.0 only servers. -// 2003/06/25 RSA Fetch server information for the resource block now. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaServer_H_ #define _COpcDaServer_H_ @@ -276,4 +277,4 @@ class COpcDaServer : UINT m_uCounter; }; -#endif // _COpcDaServer_H_ \ No newline at end of file +#endif // _COpcDaServer_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaTransaction.cpp b/Source/Shared/SampleServerClasses/COpcDaTransaction.cpp similarity index 66% rename from Source/Common/SampleServerClasses/COpcDaTransaction.cpp rename to Source/Shared/SampleServerClasses/COpcDaTransaction.cpp index 363ac2c..c715132 100644 --- a/Source/Common/SampleServerClasses/COpcDaTransaction.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaTransaction.cpp @@ -1,29 +1,31 @@ -//============================================================================ -// TITLE: COpcDaTransaction.cpp -// -// CONTENTS: -// -// Contains all information required to process an asynchronous transaction. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/10 RSA Ensured client assigned transaction ids were are saved. -// 2003/06/25 RSA Added ChangeType(). +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaTransaction.h" @@ -151,4 +153,4 @@ void COpcDaTransaction::SetItemErrors(HRESULT* pNewErrors) void COpcDaTransaction::ChangeType(DWORD dwType) { m_uType = dwType; -} \ No newline at end of file +} diff --git a/Source/Common/SampleServerClasses/COpcDaTransaction.h b/Source/Shared/SampleServerClasses/COpcDaTransaction.h similarity index 61% rename from Source/Common/SampleServerClasses/COpcDaTransaction.h rename to Source/Shared/SampleServerClasses/COpcDaTransaction.h index 86945ea..0057368 100644 --- a/Source/Common/SampleServerClasses/COpcDaTransaction.h +++ b/Source/Shared/SampleServerClasses/COpcDaTransaction.h @@ -1,29 +1,31 @@ -//============================================================================ -// TITLE: COpcDaTransaction.h -// -// CONTENTS: -// -// Contains all information required to process an asynchronous transaction. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/03/10 RSA Ensured client assigned transaction ids were are saved. -// 2003/06/25 RSA Added ChangeType(). +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaTransaction_H_ #define _COpcDaTransaction_H_ @@ -114,4 +116,4 @@ class COpcDaTransaction : public COpcMessage typedef COpcList COpcDaTransactionQueue; -#endif // _COpcDaTransaction_H_ \ No newline at end of file +#endif // _COpcDaTransaction_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaTypeDictionary.cpp b/Source/Shared/SampleServerClasses/COpcDaTypeDictionary.cpp similarity index 92% rename from Source/Common/SampleServerClasses/COpcDaTypeDictionary.cpp rename to Source/Shared/SampleServerClasses/COpcDaTypeDictionary.cpp index 4034ffa..94968d8 100644 --- a/Source/Common/SampleServerClasses/COpcDaTypeDictionary.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaTypeDictionary.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: COpcDaTypeDictionary.cpp -// -// CONTENTS: -// -// Manages complex type items and complex type descriptions. -// -// (c) Copyright 2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/03/22 RSA First implementation. -// 2003/06/25 RSA Fixed memory problems. -// 2003/09/17 RSA Updated for latest draft of the complex data spec. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaTypeDictionary.h" diff --git a/Source/Common/SampleServerClasses/COpcDaTypeDictionary.h b/Source/Shared/SampleServerClasses/COpcDaTypeDictionary.h similarity index 71% rename from Source/Common/SampleServerClasses/COpcDaTypeDictionary.h rename to Source/Shared/SampleServerClasses/COpcDaTypeDictionary.h index ac0521c..1ec4025 100644 --- a/Source/Common/SampleServerClasses/COpcDaTypeDictionary.h +++ b/Source/Shared/SampleServerClasses/COpcDaTypeDictionary.h @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: COpcDaTypeDictionary.h -// -// CONTENTS: -// -// Manages complex type items and complex type descriptions. -// -// (c) Copyright 2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/03/22 RSA First implementation. -// 2003/09/17 RSA Updated for latest draft of the complex data spec. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _COpcDaTypeDictionary_H_ #define _COpcDaTypeDictionary_H_ @@ -180,4 +184,4 @@ class COpcDaTypeDictionary : typedef COpcMap COpcDaTypeDictionaryMap; -#endif // _COpcDaTypeDictionary_H_ \ No newline at end of file +#endif // _COpcDaTypeDictionary_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaUpdateThread.cpp b/Source/Shared/SampleServerClasses/COpcDaUpdateThread.cpp similarity index 69% rename from Source/Common/SampleServerClasses/COpcDaUpdateThread.cpp rename to Source/Shared/SampleServerClasses/COpcDaUpdateThread.cpp index f18119d..93ffd7e 100644 --- a/Source/Common/SampleServerClasses/COpcDaUpdateThread.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaUpdateThread.cpp @@ -1,27 +1,31 @@ -//============================================================================ -// TITLE: COpcDaUpdateThread.cpp -// -// CONTENTS: -// -// Periodically updates all registered (a.k.a active) groups. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/12/03 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaGroup.h" @@ -221,4 +225,4 @@ void COpcDaUpdateThread::Unregister(COpcDaGroup* pGroup) m_cGroups.GetNext(pos); } -} \ No newline at end of file +} diff --git a/Source/Shared/SampleServerClasses/COpcDaUpdateThread.h b/Source/Shared/SampleServerClasses/COpcDaUpdateThread.h new file mode 100644 index 0000000..b6fc7e9 --- /dev/null +++ b/Source/Shared/SampleServerClasses/COpcDaUpdateThread.h @@ -0,0 +1,88 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcDaUpdateThread_H_ +#define _COpcDaUpdateThread_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +class COpcDaGroup; + +#define MAX_UPDATE_RATE 100 + +//============================================================================ +// CLASS: COpcDaUpdateThread +// PURPOSE: Maintains an in memory cache of DA items. + +class COpcDaUpdateThread : public COpcSynchObject +{ + OPC_CLASS_NEW_DELETE() + +public: + + //======================================================================== + // Public Operators + + // Constructor + COpcDaUpdateThread(); + + // Destructor + ~COpcDaUpdateThread(); + + //========================================================================= + // Public Methods + + // Start + bool Start(); + + // Stop + void Stop(); + + // Update + void Run(); + + // Register + void Register(COpcDaGroup* pGroup); + + // Unregister + void Unregister(COpcDaGroup* pGroup); + +private: + + //======================================================================== + // Private Members + + DWORD m_dwID; + HANDLE m_hEvent; + COpcList m_cGroups; +}; + +#endif // _COpcDaUpdateThread_H_ diff --git a/Source/Common/SampleServerClasses/COpcDaWriteThread.cpp b/Source/Shared/SampleServerClasses/COpcDaWriteThread.cpp similarity index 64% rename from Source/Common/SampleServerClasses/COpcDaWriteThread.cpp rename to Source/Shared/SampleServerClasses/COpcDaWriteThread.cpp index f31e504..7881be8 100644 --- a/Source/Common/SampleServerClasses/COpcDaWriteThread.cpp +++ b/Source/Shared/SampleServerClasses/COpcDaWriteThread.cpp @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: COpcDaWriteThread.cpp -// -// CONTENTS: -// -// A thread that serializes asynchronous write requests. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2003/06/20 RSA Initial implementation. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcDaWriteThread.h" diff --git a/Source/Shared/SampleServerClasses/COpcDaWriteThread.h b/Source/Shared/SampleServerClasses/COpcDaWriteThread.h new file mode 100644 index 0000000..975b0f3 --- /dev/null +++ b/Source/Shared/SampleServerClasses/COpcDaWriteThread.h @@ -0,0 +1,82 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcDaWriteThread_H_ +#define _COpcDaWriteThread_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "COpcDaTransaction.h" + +//============================================================================ +// CLASS: COpcDaWriteThread +// PURPOSE: Maintains an in memory cache of DA items. + +class COpcDaWriteThread : public COpcSynchObject +{ + OPC_CLASS_NEW_DELETE() + +public: + + //======================================================================== + // Public Operators + + // Constructor + COpcDaWriteThread(); + + // Destructor + ~COpcDaWriteThread(); + + //========================================================================= + // Public Methods + + // Start + bool Start(); + + // Stop + void Stop(); + + // Run + void Run(); + + // QueueTransaction + bool QueueTransaction(COpcDaTransaction* pTransaction); + +private: + + //======================================================================== + // Private Members + + DWORD m_dwID; + HANDLE m_hEvent; +}; + +#endif // _COpcDaWriteThread_H_ diff --git a/Source/Common/SampleServerClasses/IOpcDaDevice.h b/Source/Shared/SampleServerClasses/IOpcDaDevice.h similarity index 53% rename from Source/Common/SampleServerClasses/IOpcDaDevice.h rename to Source/Shared/SampleServerClasses/IOpcDaDevice.h index 63fe23b..8af5636 100644 --- a/Source/Common/SampleServerClasses/IOpcDaDevice.h +++ b/Source/Shared/SampleServerClasses/IOpcDaDevice.h @@ -1,26 +1,31 @@ -//============================================================================ -// TITLE: IOpcDaDevice.h -// -// CONTENTS: -// -// The interface to a device object. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/20 RSA First release. +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #ifndef _IOpcDaDevice_H_ #define _IOpcDaDevice_H_ @@ -82,4 +87,4 @@ interface IOpcDaDevice extern IOpcDaDevice* GetDevice(const COpcString& cItemID); -#endif // _IOpcDaDevice_H_ \ No newline at end of file +#endif // _IOpcDaDevice_H_ diff --git a/Source/Common/SampleServerClasses/OPC DA Sample Server Classes.vcproj b/Source/Shared/SampleServerClasses/OPC DA Sample Server Classes.vcproj similarity index 100% rename from Source/Common/SampleServerClasses/OPC DA Sample Server Classes.vcproj rename to Source/Shared/SampleServerClasses/OPC DA Sample Server Classes.vcproj diff --git a/Source/Common/SampleServerClasses/OpcDaHelpers.cpp b/Source/Shared/SampleServerClasses/OpcDaHelpers.cpp similarity index 70% rename from Source/Common/SampleServerClasses/OpcDaHelpers.cpp rename to Source/Shared/SampleServerClasses/OpcDaHelpers.cpp index 3ab9528..1bf5c09 100644 --- a/Source/Common/SampleServerClasses/OpcDaHelpers.cpp +++ b/Source/Shared/SampleServerClasses/OpcDaHelpers.cpp @@ -1,28 +1,31 @@ -//============================================================================== -// TITLE: OpcDaHelpers.cpp -// -// CONTENTS: -// -// XML/Text conversion helper functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/09/03 RSA First release. -// 2002/11/16 RSA Second release. -// 2003/06/25 RSA Added OpcDaGetModuleVersion(). +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "OpcDaHelpers.h" diff --git a/Source/Shared/SampleServerClasses/OpcDaHelpers.h b/Source/Shared/SampleServerClasses/OpcDaHelpers.h new file mode 100644 index 0000000..204967e --- /dev/null +++ b/Source/Shared/SampleServerClasses/OpcDaHelpers.h @@ -0,0 +1,78 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _OpcDaHelpers_H +#define _OpcDaHelpers_H + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "OpcUtils.h" +#include "OpcXmlType.h" + +// OpcDaGetModuleName +COpcString OpcDaGetModuleName(); + +// OpcDaGetModulePath +COpcString OpcDaGetModulePath(); + +// OpcDaVersionInfo +struct OpcDaVersionInfo +{ + COpcString cFileDescription; + WORD wMajorVersion; + WORD wMinorVersion; + WORD wBuildNumber; + WORD wRevisionNumber; + + // Constructor + OpcDaVersionInfo() + { + wMajorVersion = 0; + wMinorVersion = 0; + wBuildNumber = 0; + wRevisionNumber = 0; + } + + // Copy Constructor + OpcDaVersionInfo(const OpcDaVersionInfo& cInfo) + { + cFileDescription = cInfo.cFileDescription; + wMajorVersion = cInfo.wMajorVersion; + wMinorVersion = cInfo.wMinorVersion; + wBuildNumber = cInfo.wBuildNumber; + wRevisionNumber = cInfo.wRevisionNumber; + } +}; + +// OpcDaGetModuleVersion +bool OpcDaGetModuleVersion(OpcDaVersionInfo& cInfo); + +#endif // _OpcDaHelpers_H diff --git a/Source/Shared/SampleServerClasses/StdAfx.cpp b/Source/Shared/SampleServerClasses/StdAfx.cpp new file mode 100644 index 0000000..eda3a13 --- /dev/null +++ b/Source/Shared/SampleServerClasses/StdAfx.cpp @@ -0,0 +1,33 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" + +#include "opcda_i.c" +#include "opcsec_i.c" diff --git a/Source/Shared/SampleServerClasses/StdAfx.h b/Source/Shared/SampleServerClasses/StdAfx.h new file mode 100644 index 0000000..e833f4d --- /dev/null +++ b/Source/Shared/SampleServerClasses/StdAfx.h @@ -0,0 +1,53 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _OpcDa_StdAfx_H +#define _OpcDa_StdAfx_H + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +// Insert your headers here +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +#include +#include +#include +#include +#include +#include + +#include "OpcUtils.h" + +#include "opcda.h" +#include "opcerror.h" +#include "opcsec.h" + +#endif // _OpcDa_StdAfx_H diff --git a/Source/Shared/SampleServerClasses/resource.h b/Source/Shared/SampleServerClasses/resource.h new file mode 100644 index 0000000..3cc0e7a --- /dev/null +++ b/Source/Shared/SampleServerClasses/resource.h @@ -0,0 +1,58 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by OpcDaServer.rc +// +#define IDC_MYICON 2 +#define IDD_OPCDASERVER_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDS_APP_TITLE 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDS_HELLO 106 +#define IDI_OPCDASERVER 107 +#define IDI_SMALL 108 +#define IDC_OPCDASERVER 109 +#define IDS_E_FAIL 110 +#define IDR_MAINFRAME 128 +#define IDR_TYPELIB1 129 +#define IDC_STATIC -1 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 130 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/Source/Common/TestClient/OpcTestClient.cpp b/Source/Test/TestClient/OpcTestClient.cpp similarity index 80% rename from Source/Common/TestClient/OpcTestClient.cpp rename to Source/Test/TestClient/OpcTestClient.cpp index aef5c30..445cb50 100644 --- a/Source/Common/TestClient/OpcTestClient.cpp +++ b/Source/Test/TestClient/OpcTestClient.cpp @@ -1,22 +1,31 @@ -//============================================================================== -// TITLE: OpcTestClient.cpp -// -// CONTENTS: -// -// A minimal OPC DA 2.05a test client that enumerates OPC servers via OpcEnum -// and calls GetStatus on each one found. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #define WIN32_LEAN_AND_MEAN #include diff --git a/Source/Test/TestServer/COpcTestGroup.h b/Source/Test/TestServer/COpcTestGroup.h new file mode 100644 index 0000000..9737c27 --- /dev/null +++ b/Source/Test/TestServer/COpcTestGroup.h @@ -0,0 +1,69 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcTestGroup_H_ +#define _COpcTestGroup_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "COpcDaGroup.h" + +//============================================================================ +// CLASS: COpcTestGroup +// PURPOSE: A class that implements the IOPCServer interface. +// NOTES: + +class COpcTestGroup : public COpcDaGroup +{ + OPC_CLASS_NEW_DELETE() + + OPC_BEGIN_INTERFACE_TABLE(COpcTestGroup) + OPC_INTERFACE_ENTRY(IConnectionPointContainer) + OPC_INTERFACE_ENTRY(IOPCItemMgt) + OPC_INTERFACE_ENTRY(IOPCSyncIO) + OPC_INTERFACE_ENTRY(IOPCAsyncIO2) + OPC_INTERFACE_ENTRY(IOPCGroupStateMgt) + OPC_END_INTERFACE_TABLE() + +public: + + //========================================================================= + // Operators + + // Constructor + COpcTestGroup() {} + COpcTestGroup(COpcDaServer& cServer, const COpcString& cName) : COpcDaGroup(cServer, cName) {} + + // Destructor + ~COpcTestGroup() { Clear(); } +}; + +#endif // _COpcTestGroup_H_ diff --git a/Source/Test/TestServer/COpcTestServer.cpp b/Source/Test/TestServer/COpcTestServer.cpp new file mode 100644 index 0000000..5e39bc1 --- /dev/null +++ b/Source/Test/TestServer/COpcTestServer.cpp @@ -0,0 +1,54 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" +#include "COpcTestServer.h" +#include "COpcDa20Cache.h" + +//============================================================================== +// COpcTestServer + +// FinalConstruct +HRESULT COpcTestServer::FinalConstruct() +{ + if (!Initialize()) + { + return E_FAIL; + } + + return COpcDaServer::FinalConstruct(); +} + +// FinalRelease +bool COpcTestServer::FinalRelease() +{ + COpcDaServer::FinalRelease(); + Uninitialize(); + return true; +} diff --git a/Source/Test/TestServer/COpcTestServer.h b/Source/Test/TestServer/COpcTestServer.h new file mode 100644 index 0000000..f3b7590 --- /dev/null +++ b/Source/Test/TestServer/COpcTestServer.h @@ -0,0 +1,84 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _COpcTestServer_H_ +#define _COpcTestServer_H_ + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +#include "COpcDaServer.h" + +#include "OpcTestServer.h" +#include "COpcTestGroup.h" + +//============================================================================ +// CLASS: COpcTestServer +// PURPOSE: A class that implements the IOPCServer interface. + +class COpcTestServer : + public COpcComObject, + public COpcDaServer +{ + OPC_CLASS_NEW_DELETE() + + OPC_BEGIN_INTERFACE_TABLE(COpcTestServer) + OPC_INTERFACE_ENTRY(IOPCCommon) + OPC_INTERFACE_ENTRY(IConnectionPointContainer) + OPC_INTERFACE_ENTRY(IOPCServer) + OPC_INTERFACE_ENTRY(IOPCBrowseServerAddressSpace) + OPC_INTERFACE_ENTRY(IOPCItemProperties) + OPC_END_INTERFACE_TABLE() + +public: + + //========================================================================== + // Operators + + // Constructor + COpcTestServer() {} + + // Destructor + ~COpcTestServer() {} + + //========================================================================= + // Public Methods + + // FinalConstruct + virtual HRESULT FinalConstruct(); + + // FinalRelease + virtual bool FinalRelease(); + + // CreateGroup + virtual COpcDaGroup* CreateGroup(COpcDaServer& cServer, const COpcString& cName) { return new COpcTestGroup(cServer, cName); } +}; + +#endif // _COpcTestServer_H_ diff --git a/Source/Common/TestServer/OpcTestServer.config.xml b/Source/Test/TestServer/OpcTestServer.config.xml similarity index 100% rename from Source/Common/TestServer/OpcTestServer.config.xml rename to Source/Test/TestServer/OpcTestServer.config.xml diff --git a/Source/Common/TestServer/OpcTestServer.cpp b/Source/Test/TestServer/OpcTestServer.cpp similarity index 52% rename from Source/Common/TestServer/OpcTestServer.cpp rename to Source/Test/TestServer/OpcTestServer.cpp index dcdd18b..dd4189d 100644 --- a/Source/Common/TestServer/OpcTestServer.cpp +++ b/Source/Test/TestServer/OpcTestServer.cpp @@ -1,27 +1,31 @@ -//============================================================================== -// TITLE: OpcTestServer.cpp -// -// CONTENTS: -// -// Implements the required COM server functions. -// -// (c) Copyright 2002-2003 The OPC Foundation -// ALL RIGHTS RESERVED. -// -// DISCLAIMER: -// This code is provided by the OPC Foundation solely to assist in -// understanding and use of the appropriate OPC Specification(s) and may be -// used as set forth in the License Grant section of the OPC Specification. -// This code is provided as-is and without warranty or support of any sort -// and is subject to the Warranty and Liability Disclaimers which appear -// in the printed OPC Specification. -// -// MODIFICATION LOG: -// -// Date By Notes -// ---------- --- ----- -// 2002/11/16 RSA First release. -// +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ #include "StdAfx.h" #include "COpcTestServer.h" diff --git a/Source/Common/TestServer/OpcTestServer.ico b/Source/Test/TestServer/OpcTestServer.ico similarity index 100% rename from Source/Common/TestServer/OpcTestServer.ico rename to Source/Test/TestServer/OpcTestServer.ico diff --git a/Source/Test/TestServer/OpcTestServer.idl b/Source/Test/TestServer/OpcTestServer.idl new file mode 100644 index 0000000..81716ac --- /dev/null +++ b/Source/Test/TestServer/OpcTestServer.idl @@ -0,0 +1,77 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +import "opccomn.idl"; +import "opcda.idl"; + +#ifdef OPC_PLATFORM_X64 + +[ + uuid(F8582CF7-88FB-11DA-A5ED-0060B0692061), + version(1.0) +] +library OpcTestServer_x64Lib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(F8582CF8-88FB-11DA-A5ED-0060B0692061), + helpstring("OPC DA 2.05a Test Server (x64)") + ] + coclass OpcTestServer_x64 + { + [default] interface IOPCServer; + [source] interface IOPCShutdown; + }; +}; + +#else + +[ + uuid(F8582CF2-88FB-11DA-A5ED-0060B0692061), + version(1.0) +] +library OpcTestServer_x86Lib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(F8582CF3-88FB-11DA-A5ED-0060B0692061), + helpstring("OPC DA 2.05a Test Server (x86)") + ] + coclass OpcTestServer_x86 + { + [default] interface IOPCServer; + [source] interface IOPCShutdown; + }; +}; + +#endif diff --git a/Source/Common/TestServer/OpcTestServer.rc b/Source/Test/TestServer/OpcTestServer.rc similarity index 100% rename from Source/Common/TestServer/OpcTestServer.rc rename to Source/Test/TestServer/OpcTestServer.rc diff --git a/Source/Test/TestServer/StdAfx.cpp b/Source/Test/TestServer/StdAfx.cpp new file mode 100644 index 0000000..eb527dd --- /dev/null +++ b/Source/Test/TestServer/StdAfx.cpp @@ -0,0 +1,33 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#include "StdAfx.h" + +#include "opccomn_i.c" +#include "opcda_i.c" diff --git a/Source/Test/TestServer/StdAfx.h b/Source/Test/TestServer/StdAfx.h new file mode 100644 index 0000000..067e985 --- /dev/null +++ b/Source/Test/TestServer/StdAfx.h @@ -0,0 +1,49 @@ +/* ======================================================================== + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. + * + * OPC Foundation MIT License 1.00 + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * The complete license agreement can be found here: + * http://opcfoundation.org/License/MIT/1.00/ + * ======================================================================*/ + +#ifndef _StdAfx_H +#define _StdAfx_H + +#if _MSC_VER >= 1000 +#pragma once +#endif // _MSC_VER >= 1000 + +// Insert your headers here +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +#include +#include +#include +#include +#include +#include + +#include "OpcUtils.h" + +#endif // _StdAfx_H diff --git a/Source/Common/TestServer/resource.h b/Source/Test/TestServer/resource.h similarity index 94% rename from Source/Common/TestServer/resource.h rename to Source/Test/TestServer/resource.h index d74e882..82750be 100644 --- a/Source/Common/TestServer/resource.h +++ b/Source/Test/TestServer/resource.h @@ -1,8 +1,8 @@ /* ======================================================================== - * Copyright (c) 2005-2010 The OPC Foundation, Inc. All rights reserved. + * Copyright (c) 2002-2026 OPC Foundation. All rights reserved. * * OPC Foundation MIT License 1.00 - * + * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without @@ -11,7 +11,7 @@ * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, diff --git a/build.txt b/build.txt index 780fea9..615be70 100644 --- a/build.txt +++ b/build.txt @@ -1 +1 @@ -77 \ No newline at end of file +85 \ No newline at end of file