VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 };

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)