+ inline Td INTEGRAL_CAST2( Ts s )
+ {
+ const Td d = static_cast| ( s );
+ if ( static_cast( d ) != s ){
+ throw RUNTIME_EXCEPTION("INTEGRAL_CAST failed");
+ }
+ return d;
+ }
+
+ //! This verifies at runtime if there was no loss of data if an int64_t was downcast
+ //! to type T (e.g. int32_t)
+ template
+ inline T INTEGRAL_CAST( int64_t ll )
+ {
+ return INTEGRAL_CAST2( ll );
+ }
+
+ //! Returns true if an environment variable exists
+ GCBASE_API bool DoesEnvironmentVariableExist( const gcstring &VariableName );
+
+ //! Retrieve the value of an environment variable
+ //! \throw runtime_exception if not found
+ GCBASE_API gcstring GetValueOfEnvironmentVariable( const gcstring &VariableName );
+
+ //! Retrieve the value of an environment variable
+ //! \return true if environment variable was found, otherwise false
+ GCBASE_API bool GetValueOfEnvironmentVariable(const gcstring &VariableName, gcstring &VariableContent );
+
+#if defined(UNDER_RTSS)
+ //! Returns true if a file exists
+ GCBASE_API bool DoesFileExist( const gcstring &FilePath );
+#endif // defined(UNDER_RTSS)
+
+ //! Converts \ to / and replaces all unsave characters by their %xx equivalent
+ //! \ingroup Base_PublicUtilities
+ GCBASE_API gcstring UrlEncode(const GENICAM_NAMESPACE::gcstring& Input);
+
+ //! Replaces %xx escapes by their char equivalent
+ //! \ingroup Base_PublicUtilities
+ GCBASE_API GENICAM_NAMESPACE::gcstring UrlDecode(const GENICAM_NAMESPACE::gcstring& Input);
+
+ //! Replaces $(ENVIRONMENT_VARIABLES) in a string and replace ' ' with %20
+ //! \ingroup Base_PublicUtilities
+ GCBASE_API void ReplaceEnvironmentVariables(gcstring &Buffer, bool ReplaceBlankBy20 = false);
+
+
+ //! Retrieve the path of the GenICam cache folder
+ /*! The path to the cache folder can be stored by calling SetGenICamCacheFolder().
+ If GetGenICamCacheFolder() is called before SetGenICamCacheFolder(), it will return
+ the value of environment variable GENICAM_CACHE_Vx_y. If this environment variable does
+ not exist, an exception will be thrown.
+ */
+ GCBASE_API gcstring GetGenICamCacheFolder(void);
+
+ //! Retrieve the path of the GenICam logging properties file
+ /*! The path to the logging properties file can be stored by calling SetGenICamLogConfig().
+ If GetGenICamLogConfig() is called before SetGenICamLogConfig(), it will return
+ the value of environment variable GENICAM_LOG_CONFIG_Vx_y. If this environment variable does
+ not exist, an exception will be thrown.
+ */
+ GCBASE_API gcstring GetGenICamLogConfig(void);
+
+ //! Retrieve the path of the CLProtocol folder
+ /*! The path to the CLProtocol folder can be stored by calling SetGenICamCLProtocolFolder().
+ If GetGenICamCLProtocolFolder() is called before SetGenICamCLProtocolFolder(), it will return
+ the value of environment variable GENICAM_CLPROTOCOL. If this environment variable does
+ not exist, an exception will be thrown.
+ */
+ GCBASE_API gcstring GetGenICamCLProtocolFolder(void);
+
+ //! Stores the path of the GenICam cache folder
+ GCBASE_API void SetGenICamCacheFolder(const gcstring& path);
+
+ //! Stores the path of the GenICam logging properties file
+ GCBASE_API void SetGenICamLogConfig(const gcstring& path);
+
+ //! Stores the path of the CLProtocol folder
+ GCBASE_API void SetGenICamCLProtocolFolder(const gcstring& path);
+
+ //! splits str input string into a list of tokens using the delimiter
+ GCBASE_API void Tokenize(
+ const gcstring& str, //!< string to be split
+ gcstring_vector& tokens, //!< result of the splitting operation
+ const gcstring& delimiters = " " //!< delimiters for the splitting
+ );
+
+ //! Gets a list of files or directories matching a given FileTemplate
+ GCBASE_API void GetFiles(
+ const gcstring &FileTemplate, //!> The file template. Can contain environment variables.
+ gcstring_vector &FileNames, //!> A list of files matching the file template
+ const bool DirectoriesOnly = false ); //!> true = only subdirectories (ex . and ..) are retrieved; false = only files are retrieved
+
+ //! Gets the full path to the module (DLL/SO) containing the given \a pFunction; empty string if not found.
+ GCBASE_API gcstring GetModulePathFromFunction(void *pFunction);
+}
+
+#define GENICAM_UNUSED(unused_var) ((void)(unused_var))
+
+#if !defined(GENICAM_DEPRECATED)
+# if defined(__GNUC__) && (__GNUC__ >= 3) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 1) // is at least GCC 3.1 compiler?
+# define GENICAM_DEPRECATED(FUNCTION) FUNCTION __attribute__ ((deprecated))
+# elif defined(_MSC_VER) && (_MSC_VER >= 1300) // is at least VC 2003 compiler?
+# define GENICAM_DEPRECATED(FUNCTION) __declspec(deprecated) FUNCTION
+# else
+# define GENICAM_DEPRECATED(FUNCTION) FUNCTION
+# endif // compiler check
+#endif // #if !defined(GENICAM_DEPRECATED)
+
+
+///////////////////////////////////////////////////////////////////////////////
+//
+// Useful to create pragma message output reconized by VisualStudio
+//
+// Usage:
+// #pragma message ( __ERR__ "Invalid DLL ABI" )
+//
+///////////////////////////////////////////////////////////////////////////////
+// Message formater
+#define _TO_STRING( __stN ) #__stN
+#define EXPAND_TO_STRINGISE( __stN ) _TO_STRING( __stN )
+#define __LINE_STR__ EXPAND_TO_STRINGISE(__LINE__)
+#define __LOCATION__ __FILE__ "(" __LINE_STR__ ")"
+#define __OUTPUT_FORMATER__(_type) __LOCATION__ " : " _type " : "
+
+// Message types
+#define __WARN__ __OUTPUT_FORMATER__("WARNING")
+#define __ERR__ __OUTPUT_FORMATER__("ERROR")
+#define __TODO__ __OUTPUT_FORMATER__("TBD")
+
+#endif // GENAPI_GENAPIUTILITIES_DEF_H_
diff --git a/3part/camera_HIK/Includes/Genicam/CLProtocol/CLAllAdapter.h b/3part/camera_HIK/Includes/Genicam/CLProtocol/CLAllAdapter.h
new file mode 100644
index 0000000..f9a5e89
--- /dev/null
+++ b/3part/camera_HIK/Includes/Genicam/CLProtocol/CLAllAdapter.h
@@ -0,0 +1,149 @@
+//-----------------------------------------------------------------------------
+// (c) 2009 by DALSA
+// Section: Digital Imaging
+// Project: CLProtocol
+// Author: Eric Bourbonnais
+// $Header$
+//
+// License: This file is published under the license of the EMVA GenICam Standard Group.
+// A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
+// If for some reason you are missing this file please contact the EMVA or visit the website
+// (http://www.genicam.org) for a full copy.
+//
+// THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
+// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
+// OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+// POSSIBILITY OF SUCH DAMAGE.
+//-----------------------------------------------------------------------------
+/*!
+\file
+\brief C++ class wrapping CLSerialAll
+*/
+
+#ifndef CLPROTOCOL_CLALLADAPTER_H
+#define CLPROTOCOL_CLALLADAPTER_H
+
+#include
+#include
+#include
+#include
+#include
+#include |