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 "
GenApi/GenApiNamespace.h
"
21
#include "
MathParserDll.h
"
22
29
namespace
GENAPI_NAMESPACE
30
{
31
class
MATHPARSERDLL_API
CStrMap
32
{
33
int
FCount
, FCapacity;
34
int
FExtraLen,
FRecordLen
;
35
int
FDoDuplicate
;
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
57
class
MATHPARSERDLL_API
CStaticFuncMapDouble
58
{
59
public
:
60
static
int
LenIndexOf(
const
char
* str,
size_t
len,
const
void
** data );
61
};
62
63
class
MATHPARSERDLL_API
CStaticFuncMapInt64
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_
GENAPI_NAMESPACE::CStrMap::FList
char * FList
Definition:
StrMap.h:36
MATHPARSERDLL_API
#define MATHPARSERDLL_API
Definition:
MathParserDll.h:46
GENAPI_NAMESPACE::CStrMap::FCount
int FCount
Definition:
StrMap.h:33
MathParserDll.h
Export Macros.
GENAPI_NAMESPACE::CStrMap::IsEmpty
bool IsEmpty()
Definition:
StrMap.h:46
GENAPI_NAMESPACE::CStrMap::FRecordLen
int FRecordLen
Definition:
StrMap.h:34
GENAPI_NAMESPACE::CStrMap
Definition:
StrMap.h:31
GENAPI_NAMESPACE::CStaticFuncMapDouble
Definition:
StrMap.h:57
GENAPI_NAMESPACE::CStaticFuncMapInt64
Definition:
StrMap.h:63
GENAPI_NAMESPACE
Lexical analyzer for CIntSwissKnife.
Definition:
Autovector.h:48
GENAPI_NAMESPACE::CStrMap::FDoDuplicate
int FDoDuplicate
Definition:
StrMap.h:35
GenApiNamespace.h
GenICam versioned namespace.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:41