Qore DataProvider Module Reference  1.0.2
QoreDateDataTypeBase.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29 
30 
32 namespace DataProvider {
34 
38 
39 public:
40 protected:
42  const SupportedOptions = {
43  "date.output_timezone": <DataProviderTypeOptionInfo>{
44  "type": "object<TimeZone>",
45  "desc": "the time zone to use when writing to the type",
46  },
47  };
48 
51  "date.format": <DataProviderTypeOptionInfo>{
52  "type": Type::String,
53  "desc": "the format string for converting strings to dates",
54  },
55  "date.input_timezone": <DataProviderTypeOptionInfo>{
56  "type": "object<TimeZone>",
57  "desc": "the time zone for external data when writing to the type and converting strings to dates",
58  },
59  };
60 
61 public:
62 
64 
66 protected:
67  constructor(Type type, *hash<auto> options) ;
68 public:
69 
70 
72 
78  auto acceptsValue(auto value);
79 
80 
82  *hash<string, hash<DataProviderTypeOptionInfo>> getSupportedOptions();
83 
84 
86 
89 
90 };
91 };
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:161
DataProvider::QoreDateDataTypeBase::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
DataProvider::DataProviderTypeOptionInfo
describes type options
Definition: AbstractDataProviderType.qc.dox.h:122
DataProvider::QoreDateDataTypeBase::getSupportedOptions
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions()
returns supported options
DataProvider::QoreDateDataTypeBase::getSoftType
AbstractDataProviderType getSoftType()
returns a "soft" type equivalent to the current type
String
const String
DataProvider::QoreDateDataTypeBase::SupportedOptions
const SupportedOptions
supported options
Definition: QoreDateDataTypeBase.qc.dox.h:42
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:169
DataProvider::QoreDateDataTypeBase
describes a data type based on a date type with validation for string parsing and time zone support
Definition: QoreDateDataTypeBase.qc.dox.h:37
DataProvider::QoreDateDataTypeBase::SupportedSoftOptions
const SupportedSoftOptions
supported soft options
Definition: QoreDateDataTypeBase.qc.dox.h:50
DataProvider::AbstractDataProviderType::constructor
constructor()
creates the type
DataProvider::QoreDataType::type
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:42
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:37