MeVisLab Toolbox Reference
mlPCLSupportTestTools.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code author="Wolf Spindler"
3 //------------------------------------------------------------------------------
5 
10 //------------------------------------------------------------------------------
11 
12 #include <MLPCLSupportSystem.h>
13 #include <mlTypeDefs.h>
14 #include <mlAPI.h>
15 #include <mlPCLBaseObject.h>
16 
18 namespace MLPCLTestTools {
19 
21  MLPCLSUPPORT_EXPORT extern MLLibraryHandle loadPCLLibrary(const char * const modName) ML_RETURN_VALUE_SHOULD_BE_USED;
22 
26  const char * const modName) ML_RETURN_VALUE_SHOULD_BE_USED;
27 
30  MLPCLSUPPORT_EXPORT extern MLErrorCode setUpPCLTestTools() ML_RETURN_VALUE_SHOULD_BE_USED;
31 
34  MLPCLSUPPORT_EXPORT extern MLErrorCode tearDownPCLTestTools() ML_RETURN_VALUE_SHOULD_BE_USED;
35 
38  typedef void (*OverrideTestDefaultsFunc)(mlModule *modulePtr, const char *className);
39 
55  MLPCLSUPPORT_EXPORT extern MLErrorCode runClassInstancesTest(const char * const * pclClassNames,
56  size_t numPCLClassNames,
57  OverrideTestDefaultsFunc overrideTestDefaults=nullptr,
58  bool pclSupportItselfIsTested=false,
59  size_t numIndirectlyLoadedPCLClasses=0) ML_RETURN_VALUE_SHOULD_BE_USED;
60 
67 
74 
75 }
76 
Project global and OS specific declarations.
#define MLPCLSUPPORT_EXPORT
If included by external modules, exported symbols are declared as import symbols.
MLint32 MLErrorCode
Type of an ML Error code.
Definition: mlTypeDefs.h:818
#define mlModule
A macro name for a void pointer to a ml::Module in the ML to make pointer more readable.
Definition: mlAPI.h:60
HMODULE MLLibraryHandle
Defines the platform specific handle for a dynamically linked library.
Definition: mlAPI.h:71
Base object containing pointers (as MLPCLObjectPtrsContainer) to objects from the Point Cloud Library...
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
Definition: mlTypeDefs.h:513
Namespace containing useful tools for Google tests written for PCL related classes in MeVisLab.
MLPCLSUPPORT_EXPORT MLLibraryHandle loadPCLLibrary(const char *const modName) ML_RETURN_VALUE_SHOULD_BE_USED
Loads a MeVisLab library with name modName and returns a non-nullptr handle to the library on success...
MLPCLSUPPORT_EXPORT MLErrorCode setUpPCLTestTools() ML_RETURN_VALUE_SHOULD_BE_USED
Initializes some internals needed by the subsequent tool functions and loads MLBasicModules; returns ...
MLPCLSUPPORT_EXPORT MLErrorCode tearDownPCLTestTools() ML_RETURN_VALUE_SHOULD_BE_USED
Cleans up some internals initialized with setUpPCLTestTools() and unloads MLBasicModules; returns ML_...
void(* OverrideTestDefaultsFunc)(mlModule *modulePtr, const char *className)
A function type which allows to set fields of the module with class name className and given with mod...
MLPCLSUPPORT_EXPORT MLuint64 _MaxUnsigned32BitIndex
This variable is exported for testing purposes only.
MLPCLSUPPORT_EXPORT MLErrorCode unloadPCLLibrary(MLLibraryHandle modLibHandle, const char *const modName) ML_RETURN_VALUE_SHOULD_BE_USED
Unloads a MeVisLab library with name modName and handle modLibHandle; returns ML_RESULT_OK on success...
MLPCLSUPPORT_EXPORT MLuint64 _MaxSigned32BitIndex
This variable is exported for testing purposes only.
MLPCLSUPPORT_EXPORT MLErrorCode runClassInstancesTest(const char *const *pclClassNames, size_t numPCLClassNames, OverrideTestDefaultsFunc overrideTestDefaults=nullptr, bool pclSupportItselfIsTested=false, size_t numIndirectlyLoadedPCLClasses=0) ML_RETURN_VALUE_SHOULD_BE_USED
Runs some heavy tests on the module with class name className and given with modulePtr before it is t...