StrMap.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2006 by Basler Vision Technologies
3 // Section: Vision Components
4 // Project: GenApi
5 // Author: Margret Albrecht
6 // $Header$
7 //
8 // License: Derived from Kirill Zaborski's MathParser library (http://kirya.narod.ru/mathparser.html ).
9 // This library comes under LGPL license (see http://www.gnu.org/licenses/lgpl.html).
10 // Kirill's implementation is a C++ port of the CCalc library from Walery Studennikov (http://www.sama.ru/~despair/ccalc/)
11 // which also comes under the LGPL.
12 //-----------------------------------------------------------------------------
17 #ifndef _STRMAP_H_
18 #define _STRMAP_H_
19 
20 #include "MathParserDll.h"
21 
28 {
29  int FCount, FCapacity;
30  int FExtraLen, FRecordLen;
32  char* FList;
33 public:
34  CStrMap( int extrabytes = sizeof( double ), int dup = 0 );
35  ~CStrMap( void );
36  void AddString( const char* str, void* data );
37  void AddStrLen( const char* str, size_t len, const void* data );
38  void TrimClear( int NewCount );
39  void SetCapacity( int NewCapacity );
40  int LenIndexOf( const char* str, size_t len, const void** data );
41  const void* DataAt( int index );
42  bool IsEmpty()
43  {
44  return FCount == 0;
45  }
46 };
47 
48 // these must match StaticFuncMapDouble
49 #define FUNC_ROUND 13
50 #define FUNC_E 18
51 #define FUNC_PI 19
52 
54 {
55 public:
56  static int LenIndexOf( const char* str, size_t len, const void** data );
57 };
58 
60 {
61 public:
62  static int LenIndexOf( const char* str, size_t len, const void** data );
63 };
64 
65 #endif //_STRMAP_H_
Map for variables in swissknife expression.
Definition: StrMap.h:27
int FRecordLen
Definition: StrMap.h:30
#define MATHPARSERDLL_API
Definition: MathParserDll.h:46
int FCount
Definition: StrMap.h:29
Export Macros.
char * FList
Definition: StrMap.h:32
int FDoDuplicate
Definition: StrMap.h:31
bool IsEmpty()
Definition: StrMap.h:42


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54