VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
textFilter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
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 
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 
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 };
Contains the DtObjectFilter class declaration.
Stores the type and filter string for an individual filter.
Definition: objectFilter.h:20
#define DT_DLL_BROKER
Definition: include/broker/dllExport.h:20
DtString myFilter
Definition: textFilter.h:54
_NativeTypeToArg< MAKVrExchange::DtTextFilter >::Type ArgType
Typedefs DtString to ArgType.
Definition: textFilter.h:66
FilterType
Enumerates the different types of filters.
Definition: objectFilter.h:25
Simple filter defined by a single text field.
Definition: textFilter.h:21
DT_DLL_BROKER DtString getObjectValue(DtEnvValueSP obj)
Gets the object&#39;s value from the environment object.
DT_DLL_BROKER void setObjectValue(DtEnvValueSP obj, const DtString &objectValue)
Sets the object&#39;s value into the environment object.

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)