$darkmode

| Qore DataProvider Module Reference 2.7.1

QoreDateDataTypeBase.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace DataProvider {
28
31 class QoreDateDataTypeBase : public QoreDataType {
32
33 public:
34 protected:
36 const SupportedOptions = {
37 "date.output_timezone": <DataProviderTypeOptionInfo>{
38 "type": "object<TimeZone>",
39 "desc": "the time zone to use when writing to the type",
40 },
41 };
42
44 const SupportedSoftOptions = {
45 "date.format": <DataProviderTypeOptionInfo>{
46 "type": Type::String,
47 "desc": "the format string for converting strings to dates",
48 },
49 "date.input_timezone": <DataProviderTypeOptionInfo>{
50 "type": "object<TimeZone>",
51 "desc": "the time zone for external data when writing to the type and converting strings to dates",
52 },
53 };
54
55 public:
56
58
60 protected:
61 constructor(Type type, *hash<auto> options, *hash<auto> tags) ;
62 public:
63
64
66
72 auto acceptsValue(auto value);
73
74
76 *hash<string, hash<DataProviderTypeOptionInfo>> getSupportedOptions();
77
78
80
82 AbstractDataProviderType getSoftType();
83
84};
85};
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:187
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:203
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:200
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:31
DataProvider::QoreDataType::type
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:36
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:31
DataProvider::QoreDateDataTypeBase::getSupportedOptions
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions()
returns supported options
DataProvider::QoreDateDataTypeBase::SupportedSoftOptions
const SupportedSoftOptions
supported soft options
Definition: QoreDateDataTypeBase.qc.dox.h:44
DataProvider::QoreDateDataTypeBase::SupportedOptions
const SupportedOptions
supported options
Definition: QoreDateDataTypeBase.qc.dox.h:36
DataProvider::QoreDateDataTypeBase::getSoftType
AbstractDataProviderType getSoftType()
returns a "soft" type equivalent to the current type
DataProvider::QoreDateDataTypeBase::constructor
constructor(Type type, *hash< auto > options, *hash< auto > tags)
creates the object
DataProvider::QoreDateDataTypeBase::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
String
const String
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
DataProvider::DataProviderTypeOptionInfo
describes type options
Definition: AbstractDataProviderType.qc.dox.h:125