| Qore DataProvider Module Reference 3.2.2

Loading...
Searching...
No Matches
EpochIntToDateType.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
2
3/* EpochIntToDateType.qc Copyright (C) 2025 Qore Technologies s.r.o.
4
5 Permission is hereby granted, free of charge, to any person obtaining a
6 copy of this software and associated documentation files (the "Software"),
7 to deal in the Software without restriction, including without limitation
8 the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 and/or sell copies of the Software, and to permit persons to whom the
10 Software is furnished to do so, subject to the following conditions:
11
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 DEALINGS IN THE SOFTWARE.
22*/
23
25 namespace DataProvider {
27 const EpochIntToDateType = new EpochIntToDateType();
28
30 class EpochIntToDateType : public AbstractDataProviderType {
31
32 public:
34 constructor(*hash<auto> options, *hash<auto> tags) ;
35
36
38 string getName();
39
40
42
46 string getDisplayName();
47
48
50
54 string getShortDescription();
55
56
58 string getDesc();
59
60
62 *Type getValueType();
63
64
66 *AbstractDataProviderType getElementType();
67
68
70 *hash<string, AbstractDataField> getFields();
71
72
74 hash<string, bool> getAcceptTypeHash(*bool simple);
75
76
78 hash<string, bool> getReturnTypeHash(*bool simple);
79
80
82
88 auto acceptsValue(auto value);
89
90
92
97 AbstractDataProviderType getOrNothingType();
98
99};
100};
DataProvider::AbstractDataProviderType
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition AbstractDataProviderType.qc.dox.h:155
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition AbstractDataProviderType.qc.dox.h:152
DataProvider::EpochIntToDateType
A type that converts to UNIX timestamps in seconds to dates.
Definition EpochIntToDateType.qc.dox.h:30
DataProvider::EpochIntToDateType::constructor
constructor(*hash< auto > options, *hash< auto > tags)
creates the field from the argument
DataProvider::EpochIntToDateType::getValueType
*Type getValueType()
Returns the base type for the type, if any.
DataProvider::EpochIntToDateType::getOrNothingType
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
DataProvider::EpochIntToDateType::getFields
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
DataProvider::EpochIntToDateType::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash(*bool simple)
Returns a hash of types accepted by this type; keys are type names.
DataProvider::EpochIntToDateType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider::EpochIntToDateType::getName
string getName()
Returns the type name.
DataProvider::EpochIntToDateType::getDisplayName
string getDisplayName()
Returns the type's display name.
DataProvider::EpochIntToDateType::getShortDescription
string getShortDescription()
Returns the type's short description.
DataProvider::EpochIntToDateType::getDesc
string getDesc()
Returns the description.
DataProvider::EpochIntToDateType::getReturnTypeHash
hash< string, bool > getReturnTypeHash(*bool simple)
Returns a hash of types returned by this type; keys are type names.
DataProvider::EpochIntToDateType::getElementType
*AbstractDataProviderType getElementType()
Returns the subtype (for lists or hashes) if there is only one.
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27
DataProvider::EpochIntToDateType
const EpochIntToDateType
A type that converts to UNIX timestamps in seconds to dates.
Definition EpochIntToDateType.qc.dox.h:27