Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
genicam
library
CPP
include
GenApi
impl
MathParser
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
27
class
MATHPARSERDLL_API
CStrMap
28
{
29
int
FCount
, FCapacity;
30
int
FExtraLen,
FRecordLen
;
31
int
FDoDuplicate
;
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
53
class
MATHPARSERDLL_API
CStaticFuncMapDouble
54
{
55
public
:
56
static
int
LenIndexOf(
const
char
* str,
size_t
len,
const
void
** data );
57
};
58
59
class
MATHPARSERDLL_API
CStaticFuncMapInt64
60
{
61
public
:
62
static
int
LenIndexOf(
const
char
* str,
size_t
len,
const
void
** data );
63
};
64
65
#endif //_STRMAP_H_
CStrMap
Map for variables in swissknife expression.
Definition:
StrMap.h:27
CStrMap::FRecordLen
int FRecordLen
Definition:
StrMap.h:30
MATHPARSERDLL_API
#define MATHPARSERDLL_API
Definition:
MathParserDll.h:46
CStrMap::FCount
int FCount
Definition:
StrMap.h:29
MathParserDll.h
Export Macros.
CStaticFuncMapInt64
Definition:
StrMap.h:59
CStrMap::FList
char * FList
Definition:
StrMap.h:32
CStrMap::FDoDuplicate
int FDoDuplicate
Definition:
StrMap.h:31
CStaticFuncMapDouble
Definition:
StrMap.h:53
CStrMap::IsEmpty
bool IsEmpty()
Definition:
StrMap.h:42
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54