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 "GenApi/GenApiNamespace.h"
21 #include "MathParserDll.h"
22 
29 namespace GENAPI_NAMESPACE
30 {
32  {
33  int FCount, FCapacity;
34  int FExtraLen, FRecordLen;
36  char* FList;
37  public:
38  CStrMap( int extrabytes = sizeof( double ), int dup = 0 );
39  ~CStrMap( void );
40  void AddString( const char* str, void* data );
41  void AddStrLen( const char* str, size_t len, const void* data );
42  void TrimClear( int NewCount );
43  void SetCapacity( int NewCapacity );
44  int LenIndexOf( const char* str, size_t len, const void** data );
45  const void* DataAt( int index );
46  bool IsEmpty()
47  {
48  return FCount == 0;
49  }
50  };
51 
52  // these must match StaticFuncMapDouble
53  #define FUNC_ROUND 13
54  #define FUNC_E 18
55  #define FUNC_PI 19
56 
58  {
59  public:
60  static int LenIndexOf( const char* str, size_t len, const void** data );
61  };
62 
64  {
65  public:
66  static int LenIndexOf( const char* str, size_t len, const void** data );
67  };
68 
69 } /* GENAPI_NAMESPACE*/
70 
71 #endif //_STRMAP_H_
#define MATHPARSERDLL_API
Definition: MathParserDll.h:46
Export Macros.
Lexical analyzer for CIntSwissKnife.
Definition: Autovector.h:48
GenICam versioned namespace.


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:41