VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geoLocationFilter.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 
27 
30 
32  virtual ~DtGeoLocationFilter();
33 
35  virtual DtGeoLocationFilter& operator = ( const DtGeoLocationFilter& other );
36 
39 
40  virtual bool operator == ( const DtGeoLocationFilter& other );
41  virtual bool operator != ( const DtGeoLocationFilter& other );
42 
44 
47  virtual DtString string() const;
48 
51 
52  virtual void setName( const DtString& name );
53  virtual const DtString& name() const;
54 
55  virtual void setLatitude( double lat );
56  virtual double latitude() const;
57 
58  virtual void setLongitude( double lon );
59  virtual double longitude() const;
60 
61  virtual void setRadius( double r );
62  virtual double radius() const;
63 
65 
68 
69  static void setObjectValue( DtEnvValueSP obj, const DtString& objectValue );
70  static DtString getObjectValue( DtEnvValueSP obj );
71 
72  static DtEnvValueSP createSchema( DtEnvironment env );
73  static void toEnvironment( DtEnvironment env, const DtGeoLocationFilter& filter );
74  static DtGeoLocationFilter fromEnvironment( DtEnvironment env );
75 
77 
78  protected:
79 
81  DtFloat64 myLatitude;
82  DtFloat64 myLongitude;
83  DtFloat64 myRadius;
84 
85  };
86 
87 }
88 
89 
92 template <>
93 struct DT_DLL_BROKER DtVarType<MAKVrExchange::DtGeoLocationFilter>
94 {
96  typedef _NativeTypeToArg<MAKVrExchange::DtGeoLocationFilter>::Type ArgType;
97 
98  // Get the native type string.
99  static DtString nativeNameOfType();
100 
101  // Get the CmdLine ARG type string.
102  static DtString argNameOfType();
103 
104  // Get the XML schema type string.
105  static DtString xsNameOfType();
106 
107  // To and from CmdLine Argument types.
108  static ArgType convertToArgType( MAKVrExchange::DtGeoLocationFilter value );
109  static MAKVrExchange::DtGeoLocationFilter convertFromArgType( ArgType value );
110 
111  // To and From String conversions
112  static DtString convertToString( MAKVrExchange::DtGeoLocationFilter value );
113  static MAKVrExchange::DtGeoLocationFilter convertFromString( const DtString& value );
114 
115  // Get Schema Type
116  static DtEnvValueSP createSchemaType( DtEnvironment env );
117 
118  // To and From Environment Value
119  static void convertToEnvironmentValue( DtEnvironment env, MAKVrExchange::DtGeoLocationFilter value );
120  static MAKVrExchange::DtGeoLocationFilter convertFromEnvironmentValue( DtEnvironment env );
121 
122 };

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)