├── .gitreview ├── CMakeLists.txt ├── README.md ├── bin └── .gitignore ├── build ├── linux │ └── .gitignore └── windows │ └── .gitignore ├── demo ├── csharp │ ├── .gitignore │ ├── App.config │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── openconfigurator_core_net_app.csproj └── java │ ├── .gitignore │ └── src │ └── org │ └── epsg │ └── openconfigurator │ └── core │ └── java │ └── app │ ├── WrapperTestMainLinux.java │ ├── WrapperTestMainMSVC.java │ └── WrapperTestMainMinGW.java ├── doc └── .gitignore ├── library ├── CMakeLists.txt ├── Include │ ├── AccessType.h │ ├── ApplicationProcess.h │ ├── ArrayDataType.h │ ├── BaseNode.h │ ├── BaseObject.h │ ├── BaseParameter.h │ ├── BaseProcessDataMapping.h │ ├── BaseProcessImageObject.h │ ├── BuildConfigurationId.h │ ├── BuildConfigurationSetting.h │ ├── BuildConfigurationSettingBuilder.h │ ├── CProcessImageGenerator.h │ ├── CnFeature.h │ ├── ComplexDataType.h │ ├── ConfigurationGenerator.h │ ├── Constants.h │ ├── ControlledNode.h │ ├── Direction.h │ ├── DynamicChannel.h │ ├── DynamicChannelAccessType.h │ ├── EnumDataType.h │ ├── ErrorCode.h │ ├── FeatureFlags.h │ ├── GeneralFeature.h │ ├── IBaseInterface.h │ ├── IBaseObject.h │ ├── IBuildConfiguration.h │ ├── IBuildConfigurationSetting.h │ ├── IEC_Datatype.h │ ├── IFieldbusNode.h │ ├── IParameterGroupEntry.h │ ├── IResult.h │ ├── Interface.h │ ├── Language.h │ ├── LoggingConfiguration.h │ ├── ManagingNode.h │ ├── ManagingNodeMappingBuilder.h │ ├── MnFeature.h │ ├── ModularControlledNode.h │ ├── Module.h │ ├── ModuleInterface.h │ ├── NetProcessImageGenerator.h │ ├── Network.h │ ├── NetworkManagement.h │ ├── NodeAssignment.h │ ├── Object.h │ ├── ObjectType.h │ ├── OpenConfiguratorCore.h │ ├── PDOMapping.h │ ├── Parameter.h │ ├── ParameterAccess.h │ ├── ParameterGroup.h │ ├── ParameterReference.h │ ├── ParameterTemplate.h │ ├── PlkConfiguration.h │ ├── PlkDataType.h │ ├── PlkFeature.h │ ├── PlkFeatureEnum.h │ ├── PlkOperationMode.h │ ├── ProcessImageGenerator.h │ ├── ProjectManager.h │ ├── Range.h │ ├── RedundantManagingNode.h │ ├── Result.h │ ├── SortEnums.h │ ├── StructDataType.h │ ├── SubObject.h │ ├── Utilities.h │ ├── VarDeclaration.h │ └── XmlProcessImageGenerator.h └── src │ ├── ApplicationProcess.cpp │ ├── ArrayDataType.cpp │ ├── BaseNode.cpp │ ├── BaseObject.cpp │ ├── BaseParameter.cpp │ ├── BaseProcessDataMapping.cpp │ ├── BaseProcessImageObject.cpp │ ├── BuildConfigurationSetting.cpp │ ├── CProcessImageGenerator.cpp │ ├── CnFeature.cpp │ ├── ComplexDataType.cpp │ ├── ConfigurationGenerator.cpp │ ├── ControlledNode.cpp │ ├── DynamicChannel.cpp │ ├── EnumDataType.cpp │ ├── GeneralFeature.cpp │ ├── Interface.cpp │ ├── LoggingConfiguration.cpp │ ├── ManagingNode.cpp │ ├── ManagingNodeMappingBuilder.cpp │ ├── MnFeature.cpp │ ├── ModularControlledNode.cpp │ ├── Module.cpp │ ├── ModuleInterface.cpp │ ├── NetProcessImageGenerator.cpp │ ├── Network.cpp │ ├── NetworkManagement.cpp │ ├── Object.cpp │ ├── OpenConfiguratorCore.cpp │ ├── Parameter.cpp │ ├── ParameterGroup.cpp │ ├── ParameterReference.cpp │ ├── ParameterTemplate.cpp │ ├── PlkConfiguration.cpp │ ├── ProjectManager.cpp │ ├── Range.cpp │ ├── RedundantManagingNode.cpp │ ├── Result.cpp │ ├── StructDataType.cpp │ ├── SubObject.cpp │ ├── Utilities.cpp │ ├── VarDeclaration.cpp │ └── XmlProcessImageGenerator.cpp ├── resources ├── boost_log_settings.ini └── doc │ ├── glossary.md │ ├── openconfigurator.core.css │ ├── openconfigurator.core.layout.xml │ ├── openconfigurator.core.mainpage.txt │ ├── openconfigurator_core.doxyfile │ └── powerlink_logo_small.jpg ├── test ├── CMakeLists.txt ├── FindCppUnit.cmake ├── Include │ ├── AccessTypeTest.h │ ├── ApplicationProcessTest.h │ ├── ArrayDataTypeTest.h │ ├── BaseNodeTest.h │ ├── BaseObjectTest.h │ ├── ComplexDataTypeTest.h │ ├── ControlledNodeTest.h │ ├── DynamicChannelTest.h │ ├── EnumDataTypeTest.h │ ├── ErrorCodeTest.h │ ├── IEC_DatatypeTest.h │ ├── LoggingConfigurationTest.h │ ├── ManagingNodeTest.h │ ├── ModularControlledNodeTest.h │ ├── ModuleTest.h │ ├── NetworkManagementTest.h │ ├── NetworkTest.h │ ├── ObjectTest.h │ ├── ObjectTypeTest.h │ ├── PDOMappingTest.h │ ├── ParameterAccessTest.h │ ├── ParameterTest.h │ ├── PlkConfigurationTest.h │ ├── PlkDataTypeTest.h │ ├── PlkFeatureTest.h │ ├── PlkOperationModeTest.h │ ├── ProjectManagerTest.h │ ├── RangeTest.h │ ├── ResultTest.h │ ├── StructDataTypeTest.h │ ├── SubObjectTest.h │ ├── TestTemplate.h │ └── VarDeclarationTest.h └── src │ ├── AccessTypeTest.cpp │ ├── ApplicationProcessTest.cpp │ ├── ArrayDataTypeTest.cpp │ ├── BaseNodeTest.cpp │ ├── BaseObjectTest.cpp │ ├── ComplexDataTypeTest.cpp │ ├── ControlledNodeTest.cpp │ ├── CoreTestSuite.cpp │ ├── DynamicChannelTest.cpp │ ├── EnumDataTypeTest.cpp │ ├── ErrorCodeTest.cpp │ ├── IEC_DatatypeTest.cpp │ ├── LoggingConfigurationTest.cpp │ ├── ManagingNodeTest.cpp │ ├── ModularControlledNodeTest.cpp │ ├── ModuleTest.cpp │ ├── NetworkManagementTest.cpp │ ├── NetworkTest.cpp │ ├── ObjectTest.cpp │ ├── ObjectTypeTest.cpp │ ├── PDOMappingTest.cpp │ ├── ParameterAccessTest.cpp │ ├── ParameterTest.cpp │ ├── PlkConfigurationTest.cpp │ ├── PlkDataTypeTest.cpp │ ├── PlkFeatureTest.cpp │ ├── PlkOperationModeTest.cpp │ ├── ProjectManagerTest.cpp │ ├── RangeTest.cpp │ ├── ResultTest.cpp │ ├── StructDataTypeTest.cpp │ ├── SubObjectTest.cpp │ ├── TestTemplate.cpp │ └── VarDeclarationTest.cpp └── wrapper ├── csharp ├── CMakeLists.txt ├── openconfigurator_core_wrapper_net.i └── std_string_ref.i └── java ├── CMakeLists.txt ├── openconfigurator_core_wrapper_java.i └── std_string_ref.i /.gitreview: -------------------------------------------------------------------------------- 1 | [gerrit] 2 | host=gerrit.br-automation.co.at 3 | port=29418 4 | project=oat/openCONFIGURATOR/openCONFIGURATOR_2.0_core.git 5 | defaultremote=origin 6 | defaultrebase=0 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | openCONFIGURATOR library 2 | ====== 3 | -------------------------------------------------------------------------------- /bin/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | .* 3 | !.gitignore 4 | 5 | -------------------------------------------------------------------------------- /build/linux/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | .* 3 | !.gitignore -------------------------------------------------------------------------------- /build/windows/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | .* 3 | !.gitignore -------------------------------------------------------------------------------- /demo/csharp/.gitignore: -------------------------------------------------------------------------------- 1 | *.cs 2 | obj 3 | *.csproj -------------------------------------------------------------------------------- /demo/csharp/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo/csharp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("openconfigurator_core_net_app")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Bernecker + Rainer")] 12 | [assembly: AssemblyProduct("openconfigurator_core_net_app")] 13 | [assembly: AssemblyCopyright("Copyright © Bernecker + Rainer 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("59e45f95-877b-46f6-a9eb-a353bf1df95d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /demo/java/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | lib 3 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | .* 3 | !.gitignore 4 | 5 | -------------------------------------------------------------------------------- /library/Include/AccessType.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file AccessType.h 3 | \brief Implementation of the Class AccessType 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined ACCESS_TYPE_H 33 | #define ACCESS_TYPE_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | /** 44 | \brief %Object dictionary related namespace 45 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 46 | */ 47 | namespace ObjectDictionary 48 | { 49 | /** 50 | \brief Presents the access type of a POWERLINK object 51 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 52 | */ 53 | enum class AccessType : std::uint8_t 54 | { 55 | UNDEFINED = 0, 56 | RW = 1, 57 | RWS, 58 | WO, 59 | WOS, 60 | RO, 61 | CONST, 62 | COND 63 | 64 | }; 65 | 66 | static const std::string AccessTypeValues[] = 67 | { 68 | "UNDEFINED", 69 | "RW", 70 | "RWS", 71 | "WO", 72 | "WOS", 73 | "RO", 74 | "CONST", 75 | "COND" 76 | }; 77 | } 78 | } 79 | } 80 | } 81 | #endif 82 | -------------------------------------------------------------------------------- /library/Include/Constants.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file Constants.h 3 | \brief Constants ("real" constants or #defines) used throughout the codebase. 4 | \author David Puffer, Bernecker + Rainer Industrie Elektronik Ges.m.b.H. 5 | ************************************************************************/ 6 | /*------------------------------------------------------------------------------ 7 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 8 | All rights reserved. 9 | Redistribution and use in source and binary forms, with or without 10 | modification, are permitted provided that the following conditions are met: 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in the 15 | documentation and/or other materials provided with the distribution. 16 | * Neither the name of the copyright holders nor the 17 | names of its contributors may be used to endorse or promote products 18 | derived from this software without specific prior written permission. 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 20 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | ------------------------------------------------------------------------------*/ 30 | #ifndef CONSTANTS_H_ 31 | #define CONSTANTS_H_ 32 | 33 | #define DLLEXPORT 34 | 35 | #if defined(_WIN32) && defined(_MSC_VER) 36 | #undef DLLEXPORT 37 | #define DLLEXPORT __declspec(dllexport) 38 | #endif 39 | 40 | const char kPathSeparator = 41 | #ifdef _WIN32 42 | '\\'; 43 | #else 44 | '/'; 45 | #endif 46 | 47 | const char kVersionMajor = '2'; 48 | const char kVersionMinor = '2'; 49 | const char kVersionFix = '1'; 50 | const std::string kReleaseType = "release"; 51 | 52 | #endif // CONSTANTS_H_ 53 | -------------------------------------------------------------------------------- /library/Include/Direction.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file Direction.h 3 | \brief Implementation of the Class Direction 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined DIRECTION_H 33 | #define DIRECTION_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace ObjectDictionary 44 | { 45 | /** 46 | \brief Represents the input and output directory. 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class Direction : std::uint8_t 50 | { 51 | RX = 0, 52 | TX, 53 | }; 54 | 55 | static const std::string DirectionTypeValues[] = 56 | { 57 | "Rx", 58 | "Tx" 59 | }; 60 | } 61 | } 62 | } 63 | } 64 | #endif 65 | -------------------------------------------------------------------------------- /library/Include/DynamicChannelAccessType.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file DynamicChannelAccessType.h 3 | \brief Implementation of the Class DynamicChannelAccessType 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined DYNAMIC_CHANNEL_ACCESS_TYPE_H 33 | #define DYNAMIC_CHANNEL_ACCESS_TYPE_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace ObjectDictionary 44 | { 45 | /** 46 | \brief Represents the access type for dynamic channels of a POWERLINK node. 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class DynamicChannelAccessType : std::uint8_t 50 | { 51 | UNDEFINED = 0, 52 | readOnly = 1, 53 | writeOnly, 54 | readWriteOutput 55 | }; 56 | } 57 | } 58 | } 59 | } 60 | #endif 61 | -------------------------------------------------------------------------------- /library/Include/IFieldbusNode.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file FieldbusNode.h 3 | \brief Implementation of the Class IFieldbusNode 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined IFIELDBUS_NODE_H 33 | #define IFIELDBUS_NODE_H 34 | 35 | #include 36 | #include 37 | 38 | namespace IndustrialNetwork 39 | { 40 | namespace Fieldbus 41 | { 42 | /** 43 | \brief Represents the template class for a node in the Fieldbus. 44 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 45 | */ 46 | template 47 | class IFieldbusNode 48 | { 49 | 50 | public: 51 | virtual ~IFieldbusNode() {} 52 | 53 | virtual const std::string& GetName() const = 0; 54 | 55 | virtual void SetName(const std::string& name) = 0; 56 | 57 | virtual T GetNodeId() const = 0; 58 | 59 | virtual void SetNodeId(T id) = 0; 60 | 61 | virtual std::map>& GetObjectDictionary() = 0; 62 | }; 63 | } 64 | } 65 | #endif 66 | -------------------------------------------------------------------------------- /library/Include/IResult.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file IResult.h 3 | \brief Implementation of the Class IResult 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined IRESULT_H 33 | #define IRESULT_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace Fieldbus 40 | { 41 | /** 42 | \brief Represents the template class for a return value in a Fieldbus. 43 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 44 | */ 45 | template 46 | class IResult 47 | { 48 | 49 | public: 50 | IResult(const T& errorType, const std::string& errorMessage = "") : 51 | errorType(errorType), 52 | errorMessage(errorMessage) 53 | {} 54 | 55 | virtual ~IResult() {} 56 | 57 | const std::string& GetErrorMessage() const 58 | { 59 | return this->errorMessage; 60 | } 61 | const T& GetErrorType() const 62 | { 63 | return this->errorType; 64 | } 65 | 66 | private: 67 | T errorType; 68 | std::string errorMessage; 69 | }; 70 | } 71 | } 72 | #endif 73 | -------------------------------------------------------------------------------- /library/Include/Language.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file Language.h 3 | \brief Enum Class Language 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 19-Oct-2016 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined LANGUAGE_H 33 | #define LANGUAGE_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace CoreConfiguration 44 | { 45 | /** 46 | \brief Supported Language Types 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class Language : std::uint16_t 50 | { 51 | EN = 0, 52 | DE = 1 53 | }; 54 | } 55 | } 56 | } 57 | } 58 | #endif 59 | -------------------------------------------------------------------------------- /library/Include/ObjectType.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ObjectType.h 3 | \brief Implementation of the Enumeration ObjectType 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined OBJECT_TYPE_H 33 | #define OBJECT_TYPE_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace ObjectDictionary 44 | { 45 | /** 46 | \brief Represents the object type of a POWERLINK object. 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class ObjectType : std::uint8_t 50 | { 51 | INVALID = 0, 52 | DEFTYPE = 5, 53 | DEFSTRUCT = 6, 54 | VAR = 7, 55 | ARRAY = 8, 56 | RECORD = 9 57 | }; 58 | } 59 | } 60 | } 61 | } 62 | #endif 63 | -------------------------------------------------------------------------------- /library/Include/PDOMapping.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PDOMapping.h 3 | \brief Implementation of the Enumeration PDOMapping 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined PDO_MAPPING_H 33 | #define PDO_MAPPING_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace ObjectDictionary 44 | { 45 | /** 46 | \brief Represents the PDOmapping attribute a POWERLINK object. 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class PDOMapping : std::uint8_t 50 | { 51 | UNDEFINED = 0, 52 | NO, 53 | DEFAULT, 54 | OPTIONAL, 55 | TPDO, 56 | RPDO 57 | }; 58 | 59 | static const std::string PDOMappingValues[] = 60 | { 61 | "UNDEFINED", 62 | "NO", 63 | "DEFAULT", 64 | "OPTIONAL", 65 | "TPDO", 66 | "RPDO" 67 | }; 68 | } 69 | } 70 | } 71 | } 72 | #endif 73 | -------------------------------------------------------------------------------- /library/Include/ParameterAccess.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ParameterAccess.h 3 | \brief Implementation of the Class ParameterAccess 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined PARAMETER_ACCESS_H 33 | #define PARAMETER_ACCESS_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace ObjectDictionary 44 | { 45 | /** 46 | \brief Represents the access type for a complex datatype parameter. 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class ParameterAccess : std::uint8_t 50 | { 51 | constant = 0, 52 | read, 53 | write, 54 | readWrite, 55 | readWriteInput, 56 | readWriteOutput, 57 | noAccess, 58 | undefined 59 | }; 60 | 61 | static const std::string ParameterAccessValues[] = 62 | { 63 | "constant", 64 | "read", 65 | "write", 66 | "readWrite", 67 | "readWriteInput", 68 | "readWriteOutput", 69 | "noAccess", 70 | "undefined" 71 | }; 72 | } 73 | } 74 | } 75 | } 76 | #endif 77 | -------------------------------------------------------------------------------- /library/Include/PlkOperationMode.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file StationType.h 3 | \brief Implementation of the Enumeration StationType 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined PLKOPERATION_MODE_H 33 | #define PLKOPERATION_MODE_H 34 | 35 | #include 36 | 37 | namespace IndustrialNetwork 38 | { 39 | namespace POWERLINK 40 | { 41 | namespace Core 42 | { 43 | namespace Node 44 | { 45 | /** 46 | \brief Represents the POWERLINK node operation mode. 47 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 48 | */ 49 | enum class PlkOperationMode : std::uint8_t 50 | { 51 | NORMAL = 0, //!< Normal station 52 | MULTIPLEXED, //!< Multiplexed station 53 | CHAINED //!< Chained station 54 | }; 55 | } 56 | } 57 | } 58 | } 59 | #endif 60 | -------------------------------------------------------------------------------- /library/Include/ProcessImageGenerator.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ProcessImageGenerator.h 3 | \brief Implementation of the Class ProcessImageGenerator 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #if !defined PROCESS_IMAGE_GENERATOR_H 33 | #define PROCESS_IMAGE_GENERATOR_H 34 | 35 | #include 36 | 37 | #include "Network.h" 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace NetworkHandling 46 | { 47 | /** 48 | \brief Calculates the process images for the nodes in the POWERLINK network. 49 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 50 | */ 51 | class ProcessImageGenerator 52 | { 53 | 54 | public: 55 | ProcessImageGenerator() 56 | {} 57 | 58 | virtual ~ProcessImageGenerator() 59 | {} 60 | 61 | virtual const std::string Generate(std::uint8_t nodeid, std::shared_ptr network) = 0; 62 | }; 63 | } 64 | } 65 | } 66 | } 67 | #endif 68 | -------------------------------------------------------------------------------- /library/src/ArrayDataType.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ArrayDataType.cpp 3 | \brief Implementation of the Class ArrayDataType 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ArrayDataType.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::ObjectDictionary; 35 | using namespace IndustrialNetwork::POWERLINK::Core::Utilities; 36 | 37 | ArrayDataType::ArrayDataType(const std::string& uniqueID, const std::string& name, std::uint32_t lowerLimit, std::uint32_t upperLimit, const IEC_Datatype& dataType) : ComplexDataType(uniqueID, name), 38 | lowerLimit(lowerLimit), 39 | upperLimit(upperLimit), 40 | dataType(dataType) 41 | {} 42 | 43 | ArrayDataType::~ArrayDataType() 44 | {} 45 | 46 | std::uint32_t ArrayDataType::GetLowerLimit() const 47 | { 48 | return this->lowerLimit; 49 | } 50 | 51 | std::uint32_t ArrayDataType::GetUpperLimit() const 52 | { 53 | return this->upperLimit; 54 | } 55 | 56 | const IEC_Datatype& ArrayDataType::GetDataType() const 57 | { 58 | return this->dataType; 59 | } 60 | 61 | std::uint32_t ArrayDataType::GetBitSize() const 62 | { 63 | return (this->upperLimit - this->lowerLimit) * GetIECDataTypeBitSize(this->dataType); 64 | } 65 | -------------------------------------------------------------------------------- /library/src/ComplexDataType.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ComplexDataType.cpp 3 | \brief Implementation of the Class ComplexDataType 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ComplexDataType.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::ObjectDictionary; 35 | 36 | ComplexDataType::ComplexDataType(const std::string& uniqueID, const std::string& name, std::uint32_t size) : 37 | name(name), 38 | uniqueID(uniqueID), 39 | size(size) 40 | {} 41 | 42 | ComplexDataType::~ComplexDataType() 43 | {} 44 | 45 | const std::string& ComplexDataType::GetName() const 46 | { 47 | return this->name; 48 | } 49 | 50 | const std::string& ComplexDataType::GetUniqueID() const 51 | { 52 | return this->uniqueID; 53 | } 54 | 55 | std::uint32_t ComplexDataType::GetSize() const 56 | { 57 | return this->size; 58 | } 59 | -------------------------------------------------------------------------------- /library/src/ParameterTemplate.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ParameterTemplate.cpp 3 | \brief Implementation of the Class ParameterTemplate 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 05-January-2016 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ParameterTemplate.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::ObjectDictionary; 35 | using namespace IndustrialNetwork::POWERLINK::Core::Utilities; 36 | 37 | ParameterTemplate::ParameterTemplate(const std::string& uniqueID, const ParameterAccess& parameterAccess, const std::string& dataTypeUniqueIDRef) : BaseParameter(uniqueID, parameterAccess, dataTypeUniqueIDRef) 38 | {} 39 | 40 | ParameterTemplate::ParameterTemplate(const std::string& uniqueID, const ParameterAccess& parameterAccess, const IEC_Datatype& dataType) : BaseParameter(uniqueID, parameterAccess, 41 | dataType) 42 | {} 43 | 44 | ParameterTemplate::~ParameterTemplate() 45 | {} 46 | -------------------------------------------------------------------------------- /library/src/Result.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file Result.cpp 3 | \brief Implementation of the Class Result 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "Result.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::ErrorHandling; 35 | 36 | Result::Result(const ErrorCode& errorCode, const std::string& errorMessage = "") : 37 | IResult(errorCode, errorMessage) 38 | {} 39 | 40 | Result::Result(const ErrorCode& errorCode) : 41 | IResult(errorCode) 42 | {} 43 | 44 | Result::Result() : 45 | IResult(ErrorCode::SUCCESS) 46 | {} 47 | 48 | Result::~Result() 49 | {} 50 | 51 | bool Result::IsSuccessful() 52 | { 53 | return (this->GetErrorType() == ErrorCode::SUCCESS); 54 | } 55 | -------------------------------------------------------------------------------- /library/src/VarDeclaration.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file VarDeclaration.cpp 3 | \brief Implementation of the Class VarDeclaration 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 01-May-2015 12:00:00 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2015, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "VarDeclaration.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::ObjectDictionary; 35 | using namespace IndustrialNetwork::POWERLINK::Core::Utilities; 36 | 37 | VarDeclaration::VarDeclaration(const std::string& uniqueID, const std::string& name, const IEC_Datatype& dataType, std::uint32_t size, const std::string& initialValue) : ComplexDataType(uniqueID, name, size), 38 | initialValue(initialValue), 39 | dataType(dataType) 40 | {} 41 | 42 | VarDeclaration::~VarDeclaration() 43 | {} 44 | 45 | std::uint32_t VarDeclaration::GetBitSize() const 46 | { 47 | if (this->GetSize() == 0) 48 | return GetIECDataTypeBitSize(this->dataType); 49 | else 50 | return this->GetSize() * GetIECDataTypeBitSize(this->dataType); 51 | } 52 | 53 | const IEC_Datatype& VarDeclaration::GetDataType() const 54 | { 55 | return this->dataType; 56 | } 57 | -------------------------------------------------------------------------------- /resources/boost_log_settings.ini: -------------------------------------------------------------------------------- 1 | # Comments are allowed. Comment line begins with the '#' character 2 | # and spans until the end of the line. 3 | 4 | # Logging core settings section. May be omitted if no parameters specified within it. 5 | [Core] 6 | DisableLogging=false 7 | #Filter="%Severity% > 3" 8 | 9 | # Sink settings sections 10 | [Sinks.Console] 11 | 12 | # Sink destination type 13 | Destination=Console 14 | 15 | # Sink-specific filter. Optional, by default no filter is applied. 16 | #Filter="%Target% contains \"MySink1\"" 17 | 18 | # Formatter string. Optional, by default only log record message text is written. 19 | Format="[%TimeStamp%] [PID %ProcessID%/TID %ThreadID%] [%Scope%] [%Severity%] - %Message%" 20 | 21 | # The flag shows whether the sink should be asynchronous 22 | Asynchronous=false 23 | 24 | # Enables automatic stream flush after each log record. 25 | AutoFlush=true 26 | 27 | [Sinks.File] 28 | Destination=TextFile 29 | FileName="openCONFIGURATOR_%2N.log" 30 | # 10MB 31 | RotationSize=10485760 32 | Target="./logs" 33 | MaxSize=31457280 34 | ScanForFiles=Matching 35 | Format="[%TimeStamp%] [PID %ProcessID%/TID %ThreadID%] [%Scope%] [%Severity%] - %Message%" -------------------------------------------------------------------------------- /resources/doc/glossary.md: -------------------------------------------------------------------------------- 1 | Glossary {#page_glossary} 2 | ======== 3 | 4 | Abbreviation | Description 5 | ---------------------- | ------------------------------------------------------- 6 | AMI | Abstract memory interface 7 | ASnd | POWERLINK frame type: Asynchronous Send, which may contain SDO or NMT messages 8 | CAL | Communication Abstraction Layer openPOWERLINK stack module 9 | CDC | Concise Device Configuration File 10 | CFM | Configuration Manager 11 | CN | Controlled Node, i.e. slave device in the POWERLINK network 12 | DLL | Data Link Layer 13 | DNS | Domain Name System (Internet Protocol) 14 | EPSG | Ethernet POWERLINK Standardization Group 15 | IP | Internet Protocol 16 | HMI | Human machine interface 17 | MAC | Media Access Control 18 | MN | Managing Node, i.e. master device in the POWERLINK network 19 | NMT | Network Management 20 | Node | an arbitrary POWERLINK device. Often a Controlled Node 21 | OBD | Object dictionary module 22 | OD | Object dictionary 23 | PDO | Process Data Object 24 | PReq | POWERLINK frame type: Poll Request 25 | PRes | POWERLINK frame type: Poll Response 26 | RPDO | Receive PDO 27 | SDO | Service Data Object 28 | SoA | POWERLINK frame type: Start of Asynchronous 29 | SoC | POWERLINK frame type: Start of Cyclic 30 | TCP | Transmission Control Protocol 31 | TPDO | Transmit PDO 32 | UDP | User Datagram Protocol 33 | XDC | XML Device Configuration File 34 | XDD | XML Device Description File 35 | 36 | -------------------------------------------------------------------------------- /resources/doc/openconfigurator.core.css: -------------------------------------------------------------------------------- 1 | /* The standard CSS for doxygen */ 2 | 3 | h1,h2,h3,h4,h5 { 4 | color: #333377; 5 | } 6 | 7 | h1 { 8 | color: black; 9 | font-size: 1.6em; 10 | padding-top: 15px; 11 | padding-bottom: 3px; 12 | border-bottom: 2px solid black; 13 | } 14 | 15 | h2 { 16 | padding-top: 15px; 17 | padding-bottom: 3px; 18 | border-bottom: 1px solid #555599; 19 | } 20 | 21 | h3 { 22 | padding-bottom: 3px; 23 | border-bottom: 1px solid #ddddff; 24 | } 25 | 26 | h4 { 27 | margin-bottom: 5px; 28 | } 29 | 30 | pre.fragment { 31 | font-size: 0.85em; 32 | } 33 | 34 | code { 35 | font-size: 0.85em; 36 | } 37 | 38 | p.startli { 39 | padding-bottom: 3px; 40 | margin-bottom: 3px; 41 | } -------------------------------------------------------------------------------- /resources/doc/powerlink_logo_small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAutomationTechnologies/openCONFIGURATOR_library/b22f41c2320230de865e209d902628f6274a5bdb/resources/doc/powerlink_logo_small.jpg -------------------------------------------------------------------------------- /test/Include/ApplicationProcessTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ApplicationProcessTest.h 3 | \brief ApplicationProcess class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ApplicationProcess.h" 36 | 37 | using namespace std; 38 | using namespace IndustrialNetwork::POWERLINK::Core::ObjectDictionary; 39 | 40 | namespace IndustrialNetwork 41 | { 42 | namespace POWERLINK 43 | { 44 | namespace Core 45 | { 46 | namespace Test 47 | { 48 | class ApplicationProcessTest : 49 | public CppUnit::TestFixture 50 | { 51 | 52 | CPPUNIT_TEST_SUITE(ApplicationProcessTest); 53 | CPPUNIT_TEST(testParameterVectorSize); 54 | CPPUNIT_TEST_SUITE_END(); 55 | 56 | private: 57 | ApplicationProcess objectToTest; 58 | 59 | public: 60 | ApplicationProcessTest(void); 61 | ~ApplicationProcessTest(void); 62 | void setUp(); 63 | void tearDown(); 64 | 65 | void testParameterVectorSize(); 66 | }; 67 | } 68 | } 69 | } 70 | } -------------------------------------------------------------------------------- /test/Include/ArrayDataTypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ArrayDataTypeTest.h 3 | \brief ArrayDataTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ArrayDataType.h" 36 | 37 | using namespace std; 38 | using namespace IndustrialNetwork::POWERLINK::Core::ObjectDictionary; 39 | 40 | namespace IndustrialNetwork 41 | { 42 | namespace POWERLINK 43 | { 44 | namespace Core 45 | { 46 | namespace Test 47 | { 48 | class ArrayDataTypeTest : 49 | public CppUnit::TestFixture 50 | { 51 | 52 | CPPUNIT_TEST_SUITE(ArrayDataTypeTest); 53 | CPPUNIT_TEST(testLowerLimit); 54 | CPPUNIT_TEST(testUpperLimit); 55 | CPPUNIT_TEST_SUITE_END(); 56 | 57 | private: 58 | ArrayDataType objectToTest; 59 | 60 | public: 61 | ArrayDataTypeTest(void); 62 | ~ArrayDataTypeTest(void); 63 | void setUp(); 64 | void tearDown(); 65 | 66 | //add test methods here 67 | void testLowerLimit(void); 68 | void testUpperLimit(void); 69 | }; 70 | } 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /test/Include/BaseNodeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file BaseNodeTest.h 3 | \brief BaseNodeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "BaseNode.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class BaseNodeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(BaseNodeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | BaseNodeTest(void); 57 | ~BaseNodeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ComplexDataTypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ComplexDataTypeTest.h 3 | \brief ComplexDataTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ComplexDataType.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ComplexDataTypeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ComplexDataTypeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ComplexDataTypeTest(void); 57 | ~ComplexDataTypeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ControlledNodeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ControlledNodeTest.h 3 | \brief ControlledNodeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ControlledNode.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ControlledNodeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ControlledNodeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ControlledNodeTest(void); 57 | ~ControlledNodeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /test/Include/DynamicChannelTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file DynamicChannelTest.h 3 | \brief DynamicChannelTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "DynamicChannel.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class DynamicChannelTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(DynamicChannelTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | DynamicChannelTest(void); 57 | ~DynamicChannelTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/EnumDataTypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file EnumDataTypeTest.h 3 | \brief EnumDataTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "EnumDataType.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class EnumDataTypeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(EnumDataTypeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | EnumDataTypeTest(void); 57 | ~EnumDataTypeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ErrorCodeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ErrorCodeTest.h 3 | \brief ErrorCodeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | 36 | using namespace std; 37 | 38 | namespace IndustrialNetwork 39 | { 40 | namespace POWERLINK 41 | { 42 | namespace Core 43 | { 44 | namespace Test 45 | { 46 | class ErrorCodeTest : 47 | public CppUnit::TestFixture 48 | { 49 | 50 | CPPUNIT_TEST_SUITE(ErrorCodeTest); 51 | CPPUNIT_TEST(executeTest); 52 | CPPUNIT_TEST_SUITE_END(); 53 | 54 | public: 55 | ErrorCodeTest(void); 56 | ~ErrorCodeTest(void); 57 | void setUp(); 58 | void tearDown(); 59 | 60 | //add test methods here 61 | void executeTest(); 62 | }; 63 | } 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /test/Include/IEC_DatatypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file IEC_DatatypeTest.h 3 | \brief IEC_DatatypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "IEC_Datatype.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class IEC_DatatypeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(IEC_DatatypeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | IEC_DatatypeTest(void); 57 | ~IEC_DatatypeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/LoggingConfigurationTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file LoggingConfigurationTest.h 3 | \brief LoggingConfigurationTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "LoggingConfiguration.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class LoggingConfigurationTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(LoggingConfigurationTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | LoggingConfigurationTest(void); 57 | ~LoggingConfigurationTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ManagingNodeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ManagingNodeTest.h 3 | \brief ManagingNodeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ManagingNode.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ManagingNodeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ManagingNodeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ManagingNodeTest(void); 57 | ~ManagingNodeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ModularControlledNodeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ModularControlledNodeTest.h 3 | \brief ModularControlledNodeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ModularControlledNode.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ModularControlledNodeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ModularControlledNodeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ModularControlledNodeTest(void); 57 | ~ModularControlledNodeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ModuleTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ModuleTest.h 3 | \brief ModuleTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "Module.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ModuleTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ModuleTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ModuleTest(void); 57 | ~ModuleTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/NetworkManagementTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file NodeNetworkManagementTest.h 3 | \brief NodeNetworkManagementTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "NetworkManagement.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class NetworkManagementTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(NetworkManagementTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | NetworkManagementTest(void); 57 | ~NetworkManagementTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | };}}}} -------------------------------------------------------------------------------- /test/Include/NetworkTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file NetworkManagementTest.h 3 | \brief NetworkManagementTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "Network.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class NetworkTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(NetworkTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | NetworkTest(void); 57 | ~NetworkTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ObjectTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ObjectTest.h 3 | \brief ObjectTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "Object.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ObjectTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ObjectTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ObjectTest(void); 57 | ~ObjectTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ObjectTypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ObjectTypeTest.h 3 | \brief ObjectTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ObjectType.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ObjectTypeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ObjectTypeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ObjectTypeTest(void); 57 | ~ObjectTypeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/PDOMappingTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PDOMappingTest.h 3 | \brief PDOMappingTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "PDOMapping.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class PDOMappingTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(PDOMappingTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | PDOMappingTest(void); 57 | ~PDOMappingTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ParameterAccessTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ParameterAccessTest.h 3 | \brief ParameterAccessTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "ParameterAccess.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ParameterAccessTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ParameterAccessTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ParameterAccessTest(void); 57 | ~ParameterAccessTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ParameterTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ParameterTest.h 3 | \brief ParameterTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "Parameter.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ParameterTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ParameterTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ParameterTest(void); 57 | ~ParameterTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/PlkConfigurationTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PLKV2ConfigurationTest.h 3 | \brief PLKV2ConfigurationTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "PlkConfiguration.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class PlkConfigurationTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(PlkConfigurationTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | PlkConfigurationTest(void); 57 | ~PlkConfigurationTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/PlkDataTypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PlkDataTypeTest.h 3 | \brief PlkDataTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "PlkDataType.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class PlkDataTypeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(PlkDataTypeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | PlkDataTypeTest(void); 57 | ~PlkDataTypeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/PlkFeatureTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PlkFeatureTest.h 3 | \brief PlkFeatureTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "PlkFeature.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class PlkFeatureTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(PlkFeatureTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | PlkFeatureTest(void); 57 | ~PlkFeatureTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/PlkOperationModeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file StationTypeTest.cpp 3 | \brief StationTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 07-Apr-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "PlkOperationMode.h" 36 | 37 | using namespace std; 38 | using namespace IndustrialNetwork::POWERLINK::Core::Node; 39 | 40 | namespace IndustrialNetwork 41 | { 42 | namespace POWERLINK 43 | { 44 | namespace Core 45 | { 46 | namespace Test 47 | { 48 | class PlkOperationModeTest : 49 | public CppUnit::TestFixture 50 | { 51 | 52 | CPPUNIT_TEST_SUITE(PlkOperationModeTest); 53 | CPPUNIT_TEST(testNormalStationType); 54 | CPPUNIT_TEST(testChainedStationType); 55 | CPPUNIT_TEST(testMultiplexedStationType); 56 | CPPUNIT_TEST_SUITE_END(); 57 | 58 | public: 59 | PlkOperationModeTest(void); 60 | ~PlkOperationModeTest(void); 61 | void setUp(); 62 | void tearDown(); 63 | 64 | void testNormalStationType(); 65 | void testChainedStationType(); 66 | void testMultiplexedStationType(); 67 | }; 68 | } 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /test/Include/RangeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ModuleRangeTest.h 3 | \brief ModuleRangeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "Range.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class RangeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(RangeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | RangeTest(void); 57 | ~RangeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/ResultTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ResultTest.h 3 | \brief ResultTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "Result.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class ResultTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(ResultTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | ResultTest(void); 57 | ~ResultTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/StructDataTypeTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file StructDataTypeTest.h 3 | \brief StructDataTypeTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "StructDataType.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class StructDataTypeTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(StructDataTypeTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | StructDataTypeTest(void); 57 | ~StructDataTypeTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/SubObjectTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file SubObjectTest.h 3 | \brief SubObjectTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "SubObject.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class SubObjectTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(SubObjectTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | SubObjectTest(void); 57 | ~SubObjectTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/Include/TestTemplate.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file TestTemplate.cpp 3 | \brief TestTemplate class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | 36 | using namespace std; 37 | 38 | namespace IndustrialNetwork 39 | { 40 | namespace POWERLINK 41 | { 42 | namespace Core 43 | { 44 | namespace Test 45 | { 46 | class TestTemplate : 47 | public CppUnit::TestFixture 48 | { 49 | 50 | CPPUNIT_TEST_SUITE(TestTemplate); 51 | //add test methods here 52 | //CPPUNIT_TEST(executeTest); 53 | // ... name each method that should be executed 54 | CPPUNIT_TEST_SUITE_END(); 55 | 56 | public: 57 | TestTemplate(void); 58 | ~TestTemplate(void); 59 | void setUp(); 60 | void tearDown(); 61 | 62 | //add test methods here 63 | void executeTest(); 64 | }; 65 | } 66 | } 67 | } 68 | } -------------------------------------------------------------------------------- /test/Include/VarDeclarationTest.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file VarDeclarationTest.h 3 | \brief VarDeclarationTest class 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #pragma once 33 | #include 34 | #include 35 | #include "VarDeclaration.h" 36 | 37 | using namespace std; 38 | 39 | namespace IndustrialNetwork 40 | { 41 | namespace POWERLINK 42 | { 43 | namespace Core 44 | { 45 | namespace Test 46 | { 47 | class VarDeclarationTest : 48 | public CppUnit::TestFixture 49 | { 50 | 51 | CPPUNIT_TEST_SUITE(VarDeclarationTest); 52 | CPPUNIT_TEST(executeTest); 53 | CPPUNIT_TEST_SUITE_END(); 54 | 55 | public: 56 | VarDeclarationTest(void); 57 | ~VarDeclarationTest(void); 58 | void setUp(); 59 | void tearDown(); 60 | 61 | //add test methods here 62 | void executeTest(); 63 | }; 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /test/src/ApplicationProcessTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ApplicationProcessTest.cpp 3 | \brief Implementation of the class ApplicationProcessTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ApplicationProcessTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ApplicationProcessTest); 37 | 38 | ApplicationProcessTest::ApplicationProcessTest(void) 39 | {} 40 | 41 | ApplicationProcessTest::~ApplicationProcessTest(void) 42 | {} 43 | 44 | void ApplicationProcessTest::setUp() 45 | {} 46 | 47 | void ApplicationProcessTest::tearDown() 48 | {} 49 | 50 | void ApplicationProcessTest::testParameterVectorSize(void) 51 | { 52 | 53 | } -------------------------------------------------------------------------------- /test/src/ArrayDataTypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ArrayDataTypeTest.cpp 3 | \brief Implementation of the Class ArrayDataTypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ArrayDataTypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ArrayDataTypeTest); 37 | 38 | ArrayDataTypeTest::ArrayDataTypeTest(void): 39 | objectToTest("test", "uniqueID", 5, 10, IEC_Datatype::BOOL) 40 | {} 41 | 42 | ArrayDataTypeTest::~ArrayDataTypeTest(void) 43 | {} 44 | 45 | void ArrayDataTypeTest::setUp() {} 46 | 47 | void ArrayDataTypeTest::tearDown() {} 48 | 49 | void ArrayDataTypeTest::testLowerLimit(void) 50 | { 51 | 52 | } 53 | 54 | void ArrayDataTypeTest::testUpperLimit(void) 55 | { 56 | 57 | } -------------------------------------------------------------------------------- /test/src/BaseNodeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file BaseNodeTest.cpp 3 | \brief Implementation of the Class BaseNodeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "BaseNodeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(BaseNodeTest); 37 | 38 | BaseNodeTest::BaseNodeTest(void) 39 | { 40 | } 41 | 42 | BaseNodeTest::~BaseNodeTest(void) 43 | { 44 | } 45 | 46 | void BaseNodeTest::setUp() {} 47 | 48 | void BaseNodeTest::tearDown() {} 49 | 50 | void BaseNodeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ComplexDataTypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ComplexDataTypeTest.cpp 3 | \brief Implementation of the Class ComplexDataTypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ComplexDataTypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ComplexDataTypeTest); 37 | 38 | ComplexDataTypeTest::ComplexDataTypeTest(void) 39 | { 40 | } 41 | 42 | ComplexDataTypeTest::~ComplexDataTypeTest(void) 43 | { 44 | } 45 | 46 | void ComplexDataTypeTest::setUp() {} 47 | 48 | void ComplexDataTypeTest::tearDown() {} 49 | 50 | void ComplexDataTypeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ControlledNodeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ControlledNodeTest.cpp 3 | \brief Implementation of the Class ControlledNodeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ControlledNodeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ControlledNodeTest); 37 | 38 | ControlledNodeTest::ControlledNodeTest(void) 39 | { 40 | } 41 | 42 | ControlledNodeTest::~ControlledNodeTest(void) 43 | { 44 | } 45 | 46 | void ControlledNodeTest::setUp() {} 47 | 48 | void ControlledNodeTest::tearDown() {} 49 | 50 | void ControlledNodeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/CoreTestSuite.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file CoreTestSuite.cpp 3 | \brief Main class of the core unit tests 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 25-Feb-2015 10:23:14 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include 33 | #include 34 | #include 35 | #include 36 | 37 | using namespace std; 38 | 39 | int main() 40 | { 41 | cout << "Execute openCONFIGURATOR unit tests - build on: " __DATE__ ", " __TIME__ << endl; 42 | // get the top-level suite of tests (registry is not the Win32 registry) 43 | CppUnit::Test* suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); 44 | // add the test to the list of tests to run 45 | CppUnit::TextUi::TestRunner runner; 46 | runner.addTest(suite); 47 | // change the default outputter to a compiler error format outputter 48 | runner.setOutputter(new CppUnit::CompilerOutputter(&runner.result(), std::cerr)); 49 | // run the tests 50 | bool wasSuccessful = runner.run(); 51 | // return error code 1 if one or more tests failed 52 | return wasSuccessful ? 0 : 1; 53 | } -------------------------------------------------------------------------------- /test/src/DynamicChannelTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file DynamicChannelTest.cpp 3 | \brief Implementation of the Class DynamicChannelTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "DynamicChannelTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(DynamicChannelTest); 37 | 38 | DynamicChannelTest::DynamicChannelTest(void) 39 | { 40 | } 41 | 42 | DynamicChannelTest::~DynamicChannelTest(void) 43 | { 44 | } 45 | 46 | void DynamicChannelTest::setUp() {} 47 | 48 | void DynamicChannelTest::tearDown() {} 49 | 50 | void DynamicChannelTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/EnumDataTypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file EnumDataTypeTest.cpp 3 | \brief Implementation of the Class EnumDataTypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "EnumDataTypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(EnumDataTypeTest); 37 | 38 | EnumDataTypeTest::EnumDataTypeTest(void) 39 | { 40 | } 41 | 42 | EnumDataTypeTest::~EnumDataTypeTest(void) 43 | { 44 | } 45 | 46 | void EnumDataTypeTest::setUp() {} 47 | 48 | void EnumDataTypeTest::tearDown() {} 49 | 50 | void EnumDataTypeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ErrorCodeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ErrorCodeTest.cpp 3 | \brief Implementation of the Class ErrorCodeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ErrorCodeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ErrorCodeTest); 37 | 38 | ErrorCodeTest::ErrorCodeTest(void) 39 | { 40 | } 41 | 42 | ErrorCodeTest::~ErrorCodeTest(void) 43 | { 44 | } 45 | 46 | void ErrorCodeTest::setUp() {} 47 | 48 | void ErrorCodeTest::tearDown() {} 49 | 50 | void ErrorCodeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/IEC_DatatypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file IEC_DatatypeTest.cpp 3 | \brief Implementation of the Class IEC_DatatypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "IEC_DatatypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(IEC_DatatypeTest); 37 | 38 | IEC_DatatypeTest::IEC_DatatypeTest(void) 39 | { 40 | } 41 | 42 | IEC_DatatypeTest::~IEC_DatatypeTest(void) 43 | { 44 | } 45 | 46 | void IEC_DatatypeTest::setUp() {} 47 | 48 | void IEC_DatatypeTest::tearDown() {} 49 | 50 | void IEC_DatatypeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/LoggingConfigurationTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file LoggingConfigurationTest.cpp 3 | \brief Implementation of the Class LoggingConfigurationTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "LoggingConfigurationTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(LoggingConfigurationTest); 37 | 38 | LoggingConfigurationTest::LoggingConfigurationTest(void) 39 | { 40 | } 41 | 42 | LoggingConfigurationTest::~LoggingConfigurationTest(void) 43 | { 44 | } 45 | 46 | void LoggingConfigurationTest::setUp() {} 47 | 48 | void LoggingConfigurationTest::tearDown() {} 49 | 50 | void LoggingConfigurationTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ManagingNodeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ManagingNodeTest.cpp 3 | \brief Implementation of the Class ManagingNodeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ManagingNodeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ManagingNodeTest); 37 | 38 | ManagingNodeTest::ManagingNodeTest(void) 39 | { 40 | } 41 | 42 | ManagingNodeTest::~ManagingNodeTest(void) 43 | { 44 | } 45 | 46 | void ManagingNodeTest::setUp() {} 47 | 48 | void ManagingNodeTest::tearDown() {} 49 | 50 | void ManagingNodeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ModularControlledNodeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ModularControlledNodeTest.cpp 3 | \brief Implementation of the Class ModularControlledNodeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ModularControlledNodeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ModularControlledNodeTest); 37 | 38 | ModularControlledNodeTest::ModularControlledNodeTest(void) 39 | { 40 | } 41 | 42 | ModularControlledNodeTest::~ModularControlledNodeTest(void) 43 | { 44 | } 45 | 46 | void ModularControlledNodeTest::setUp() {} 47 | 48 | void ModularControlledNodeTest::tearDown() {} 49 | 50 | void ModularControlledNodeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ModuleTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ModuleTest.cpp 3 | \brief Implementation of the Class ModuleTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ModuleTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ModuleTest); 37 | 38 | ModuleTest::ModuleTest(void) 39 | { 40 | } 41 | 42 | ModuleTest::~ModuleTest(void) 43 | { 44 | } 45 | 46 | void ModuleTest::setUp() {} 47 | 48 | void ModuleTest::tearDown() {} 49 | 50 | void ModuleTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/NetworkManagementTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file NodeNetworkManagementTest.cpp 3 | \brief Implementation of the Class NodeNetworkManagementTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "NetworkManagementTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(NetworkManagementTest); 37 | 38 | NetworkManagementTest::NetworkManagementTest(void) 39 | { 40 | } 41 | 42 | NetworkManagementTest::~NetworkManagementTest(void) 43 | { 44 | } 45 | 46 | void NetworkManagementTest::setUp() {} 47 | 48 | void NetworkManagementTest::tearDown() {} 49 | 50 | void NetworkManagementTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/NetworkTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file NetworkManagementTest.cpp 3 | \brief Implementation of the Class NetworkManagementTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "NetworkTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(NetworkTest); 37 | 38 | NetworkTest::NetworkTest(void) 39 | { 40 | } 41 | 42 | NetworkTest::~NetworkTest(void) 43 | { 44 | } 45 | 46 | void NetworkTest::setUp() {} 47 | 48 | void NetworkTest::tearDown() {} 49 | 50 | void NetworkTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ObjectTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ObjectTest.cpp 3 | \brief Implementation of the Class ObjectTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ObjectTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ObjectTest); 37 | 38 | ObjectTest::ObjectTest(void) 39 | { 40 | } 41 | 42 | ObjectTest::~ObjectTest(void) 43 | { 44 | } 45 | 46 | void ObjectTest::setUp() {} 47 | 48 | void ObjectTest::tearDown() {} 49 | 50 | void ObjectTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ObjectTypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ObjectTypeTest.cpp 3 | \brief Implementation of the Class ObjectTypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ObjectTypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ObjectTypeTest); 37 | 38 | ObjectTypeTest::ObjectTypeTest(void) 39 | { 40 | } 41 | 42 | ObjectTypeTest::~ObjectTypeTest(void) 43 | { 44 | } 45 | 46 | void ObjectTypeTest::setUp() {} 47 | 48 | void ObjectTypeTest::tearDown() {} 49 | 50 | void ObjectTypeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/PDOMappingTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PDOMappingTest.cpp 3 | \brief Implementation of the Class PDOMappingTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "PDOMappingTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(PDOMappingTest); 37 | 38 | PDOMappingTest::PDOMappingTest(void) 39 | { 40 | } 41 | 42 | PDOMappingTest::~PDOMappingTest(void) 43 | { 44 | } 45 | 46 | void PDOMappingTest::setUp() {} 47 | 48 | void PDOMappingTest::tearDown() {} 49 | 50 | void PDOMappingTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ParameterAccessTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ParameterAccessTests.cpp 3 | \brief Implementation of the Class ParameterAccessTests 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ParameterAccessTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ParameterAccessTest); 37 | 38 | ParameterAccessTest::ParameterAccessTest(void) 39 | { 40 | } 41 | 42 | ParameterAccessTest::~ParameterAccessTest(void) 43 | { 44 | } 45 | 46 | void ParameterAccessTest::setUp() {} 47 | 48 | void ParameterAccessTest::tearDown() {} 49 | 50 | void ParameterAccessTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ParameterTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ParameterTest.cpp 3 | \brief Implementation of the Class ParameterTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ParameterTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ParameterTest); 37 | 38 | ParameterTest::ParameterTest(void) 39 | { 40 | } 41 | 42 | ParameterTest::~ParameterTest(void) 43 | { 44 | } 45 | 46 | void ParameterTest::setUp() {} 47 | 48 | void ParameterTest::tearDown() {} 49 | 50 | void ParameterTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/PlkConfigurationTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PLKV2ConfigurationTest.cpp 3 | \brief Implementation of the Class PLKV2ConfigurationTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "PlkConfigurationTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(PlkConfigurationTest); 37 | 38 | PlkConfigurationTest::PlkConfigurationTest(void) 39 | { 40 | } 41 | 42 | PlkConfigurationTest::~PlkConfigurationTest(void) 43 | { 44 | } 45 | 46 | void PlkConfigurationTest::setUp() {} 47 | 48 | void PlkConfigurationTest::tearDown() {} 49 | 50 | void PlkConfigurationTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/PlkDataTypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PlkDataTypeTest.cpp 3 | \brief Implementation of the Class PlkDataTypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "PlkDataTypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(PlkDataTypeTest); 37 | 38 | PlkDataTypeTest::PlkDataTypeTest(void) 39 | { 40 | } 41 | 42 | PlkDataTypeTest::~PlkDataTypeTest(void) 43 | { 44 | } 45 | 46 | void PlkDataTypeTest::setUp() {} 47 | 48 | void PlkDataTypeTest::tearDown() {} 49 | 50 | void PlkDataTypeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/PlkFeatureTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file PlkFeatureTest.cpp 3 | \brief Implementation of the Class PlkFeatureTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "PlkFeatureTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(PlkFeatureTest); 37 | 38 | PlkFeatureTest::PlkFeatureTest(void) 39 | { 40 | } 41 | 42 | PlkFeatureTest::~PlkFeatureTest(void) 43 | { 44 | } 45 | 46 | void PlkFeatureTest::setUp() {} 47 | 48 | void PlkFeatureTest::tearDown() {} 49 | 50 | void PlkFeatureTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/RangeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ModuleRangeTest.cpp 3 | \brief Implementation of the Class ModuleRangeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "RangeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(RangeTest); 37 | 38 | RangeTest::RangeTest(void) 39 | { 40 | } 41 | 42 | RangeTest::~RangeTest(void) 43 | { 44 | } 45 | 46 | void RangeTest::setUp() {} 47 | 48 | void RangeTest::tearDown() {} 49 | 50 | void RangeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/ResultTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file ResultTest.cpp 3 | \brief Implementation of the Class ResultTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "ResultTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(ResultTest); 37 | 38 | ResultTest::ResultTest(void) 39 | { 40 | } 41 | 42 | ResultTest::~ResultTest(void) 43 | { 44 | } 45 | 46 | void ResultTest::setUp() {} 47 | 48 | void ResultTest::tearDown() {} 49 | 50 | void ResultTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/StructDataTypeTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file StructDataTypeTest.cpp 3 | \brief Implementation of the Class StructDataTypeTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "StructDataTypeTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(StructDataTypeTest); 37 | 38 | StructDataTypeTest::StructDataTypeTest(void) 39 | { 40 | } 41 | 42 | StructDataTypeTest::~StructDataTypeTest(void) 43 | { 44 | } 45 | 46 | void StructDataTypeTest::setUp() {} 47 | 48 | void StructDataTypeTest::tearDown() {} 49 | 50 | void StructDataTypeTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/SubObjectTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file SubObjectTest.cpp 3 | \brief Implementation of the Class SubObjectTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "SubObjectTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(SubObjectTest); 37 | 38 | SubObjectTest::SubObjectTest(void) 39 | { 40 | } 41 | 42 | SubObjectTest::~SubObjectTest(void) 43 | { 44 | } 45 | 46 | void SubObjectTest::setUp() {} 47 | 48 | void SubObjectTest::tearDown() {} 49 | 50 | void SubObjectTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/TestTemplate.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file TestTemplate.cpp 3 | \brief Implementation of the Class TestTemplate 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "TestTemplate.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(TestTemplate); 37 | 38 | TestTemplate::TestTemplate(void) 39 | { 40 | } 41 | 42 | TestTemplate::~TestTemplate(void) 43 | { 44 | } 45 | 46 | void TestTemplate::setUp() {} 47 | 48 | void TestTemplate::tearDown() {} 49 | 50 | void TestTemplate::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } -------------------------------------------------------------------------------- /test/src/VarDeclarationTest.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | \file VarDeclarationTest.cpp 3 | \brief Implementation of the Class VarDeclarationTest 4 | \author rueckerc, Bernecker+Rainer Industrie Elektronik Ges.m.b.H. 5 | \date 04-Feb-2015 09:38:12 6 | ************************************************************************/ 7 | 8 | /*------------------------------------------------------------------------------ 9 | Copyright (c) 2014, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R) 10 | All rights reserved. 11 | Redistribution and use in source and binary forms, with or without 12 | modification, are permitted provided that the following conditions are met: 13 | * Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | * Neither the name of the copyright holders nor the 19 | names of its contributors may be used to endorse or promote products 20 | derived from this software without specific prior written permission. 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 28 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | ------------------------------------------------------------------------------*/ 32 | #include "VarDeclarationTest.h" 33 | 34 | using namespace IndustrialNetwork::POWERLINK::Core::Test; 35 | 36 | CPPUNIT_TEST_SUITE_REGISTRATION(VarDeclarationTest); 37 | 38 | VarDeclarationTest::VarDeclarationTest(void) 39 | { 40 | } 41 | 42 | VarDeclarationTest::~VarDeclarationTest(void) 43 | { 44 | } 45 | 46 | void VarDeclarationTest::setUp() {} 47 | 48 | void VarDeclarationTest::tearDown() {} 49 | 50 | void VarDeclarationTest::executeTest(void) 51 | { 52 | int x = 5; 53 | CPPUNIT_ASSERT(x == 5); 54 | } --------------------------------------------------------------------------------