All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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  private:
51  CStrMap( const CStrMap& ); // copy constructor is not implemented
52  CStrMap& operator =( const CStrMap& ); // assignment operator is not implemented
53  };
54 
55  // these must match StaticFuncMapDouble
56  #define FUNC_ROUND 13
57  #define FUNC_E 18
58  #define FUNC_PI 19
59 
61  {
62  public:
63  static int LenIndexOf( const char* str, size_t len, const void** data );
64  };
65 
67  {
68  public:
69  static int LenIndexOf( const char* str, size_t len, const void** data );
70  };
71 
72 } /* GENAPI_NAMESPACE*/
73 
74 #endif //_STRMAP_H_
GENAPI_NAMESPACE
Lexical analyzer for CIntSwissKnife.
Definition: Destructible.h:30
MATHPARSERDLL_API
#define MATHPARSERDLL_API
Definition: MathParserDll.h:46
GENAPI_NAMESPACE::CStrMap::FCount
int FCount
Definition: StrMap.h:33
GENAPI_NAMESPACE::CStrMap::IsEmpty
bool IsEmpty()
Definition: StrMap.h:46
GENAPI_NAMESPACE::CStaticFuncMapInt64
Definition: StrMap.h:66
GENAPI_NAMESPACE::CStrMap::FList
char * FList
Definition: StrMap.h:36
GENAPI_NAMESPACE::CStaticFuncMapDouble
Definition: StrMap.h:60
GENAPI_NAMESPACE::CStrMap
Definition: StrMap.h:31
MathParserDll.h
Export Macros.
GENAPI_NAMESPACE::CStrMap::FRecordLen
int FRecordLen
Definition: StrMap.h:34
GenApiNamespace.h
GenICam versioned namespace.
GENAPI_NAMESPACE::operator=
virtual IBoolean & operator=(bool Value)
Set node value.
Definition: IBoolean.h:64
GENAPI_NAMESPACE::CStrMap::FDoDuplicate
int FDoDuplicate
Definition: StrMap.h:35


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:12