VR-Exchange 2.8 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
broker
textFilter.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2015 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
broker/objectFilter.h
>
13
#include <mtl/envValue.h>
14
#include <mtl/varType.h>
15
16
namespace
MAKVrExchange
17
{
18
21
class
DT_DLL_BROKER
DtTextFilter
:
public
DtObjectFilter
22
{
23
public
:
24
26
DtTextFilter
(
FilterType
type,
DtString
filter );
27
29
DtTextFilter
(
const
DtTextFilter
& filter );
30
32
virtual
~
DtTextFilter
();
33
35
virtual
DtTextFilter
& operator = (
const
DtTextFilter
& filter );
36
38
virtual
DtString
string()
const
;
39
42
43
static
void
setObjectValue
( DtEnvValueSP obj,
const
DtString
& objectValue );
44
static
DtString
getObjectValue
( DtEnvValueSP obj );
45
46
static
DtEnvValueSP createSchema( DtEnvironment env );
47
static
void
toEnvironment( DtEnvironment env,
const
DtTextFilter
& filter );
48
static
DtTextFilter
fromEnvironment( DtEnvironment env );
49
51
52
protected
:
53
54
DtString
myFilter
;
55
56
};
57
58
}
59
62
template
<>
63
struct
DT_DLL_BROKER
DtVarType<MAKVrExchange::DtTextFilter>
64
{
66
typedef
_NativeTypeToArg<MAKVrExchange::DtTextFilter>::Type
ArgType
;
67
68
// Get the native type string.
69
static
DtString
nativeNameOfType();
70
71
// Get the CmdLine ARG type string.
72
static
DtString
argNameOfType();
73
74
// Get the XML schema type string.
75
static
DtString
xsNameOfType();
76
77
// To and from CmdLine Argument types.
78
static
ArgType
convertToArgType(
MAKVrExchange::DtTextFilter
value );
79
static
MAKVrExchange::DtTextFilter
convertFromArgType(
ArgType
value );
80
81
// To and From String conversions
82
static
DtString
convertToString(
MAKVrExchange::DtTextFilter
value );
83
static
MAKVrExchange::DtTextFilter
convertFromString(
const
DtString
& value );
84
85
// Get Schema Type
86
static
DtEnvValueSP createSchemaType( DtEnvironment env );
87
88
// To and From Environment Value
89
static
void
convertToEnvironmentValue( DtEnvironment env,
MAKVrExchange::DtTextFilter
value );
90
static
MAKVrExchange::DtTextFilter
convertFromEnvironmentValue( DtEnvironment env );
91
92
};
objectFilter.h
Contains the DtObjectFilter class declaration.
MAKVrExchange::DtObjectFilter
Stores the type and filter string for an individual filter.
Definition:
objectFilter.h:20
DT_DLL_BROKER
#define DT_DLL_BROKER
Definition:
include/broker/dllExport.h:20
MAKVrExchange::DtTextFilter::myFilter
DtString myFilter
Definition:
textFilter.h:54
DtVarType< MAKVrExchange::DtTextFilter >::ArgType
_NativeTypeToArg< MAKVrExchange::DtTextFilter >::Type ArgType
Typedefs DtString to ArgType.
Definition:
textFilter.h:66
MAKVrExchange::DtObjectFilter::FilterType
FilterType
Enumerates the different types of filters.
Definition:
objectFilter.h:25
MAKVrExchange::DtTextFilter
Simple filter defined by a single text field.
Definition:
textFilter.h:21
MAKVrExchange::getObjectValue
DT_DLL_BROKER DtString getObjectValue(DtEnvValueSP obj)
Gets the object's value from the environment object.
DtString
MAKVrExchange::setObjectValue
DT_DLL_BROKER void setObjectValue(DtEnvValueSP obj, const DtString &objectValue)
Sets the object's value into the environment object.
Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (
www.mak.com
)