StrMap.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2006 by Basler Vision Technologies
00003 //  Section: Vision Components
00004 //  Project: GenApi
00005 //  Author:  Margret Albrecht
00006 //  $Header$
00007 //
00008 //  License: Derived from Kirill Zaborski's MathParser library (http://kirya.narod.ru/mathparser.html ).
00009 //  This library comes under LGPL license (see http://www.gnu.org/licenses/lgpl.html).
00010 //  Kirill's implementation is a C++ port of the CCalc library from Walery Studennikov (http://www.sama.ru/~despair/ccalc/)
00011 //  which also comes under the LGPL.
00012 //-----------------------------------------------------------------------------
00017 #ifndef _STRMAP_H_
00018 #define _STRMAP_H_
00019 
00020 #include "MathParserDll.h"
00021 
00027 class MATHPARSERDLL_API CStrMap
00028 {
00029     int   FCount, FCapacity;
00030     int   FExtraLen, FRecordLen;
00031     int   FDoDuplicate;
00032     char* FList;
00033 public:
00034     CStrMap( int extrabytes = sizeof( double ), int dup = 0 );
00035     ~CStrMap( void );
00036     void AddString( const char* str, void* data );
00037     void AddStrLen( const char* str, size_t len, const void* data );
00038     void TrimClear( int NewCount );
00039     void SetCapacity( int NewCapacity );
00040     int LenIndexOf( const char* str, size_t len, const void** data );
00041     const void* DataAt( int index );
00042     bool IsEmpty()
00043     {
00044         return FCount == 0;
00045     }
00046 };
00047 
00048 // these must match StaticFuncMapDouble
00049 #define FUNC_ROUND    13
00050 #define FUNC_E        18
00051 #define FUNC_PI        19
00052 
00053 class MATHPARSERDLL_API CStaticFuncMapDouble
00054 {
00055 public:
00056     static int LenIndexOf( const char* str, size_t len, const void** data );
00057 };
00058 
00059 class MATHPARSERDLL_API CStaticFuncMapInt64
00060 {
00061 public:
00062     static int LenIndexOf( const char* str, size_t len, const void** data );
00063 };
00064 
00065 #endif //_STRMAP_H_


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:47