Qore DataProvider Module Reference 3.2.2
Loading...
Searching...
No Matches
SuperSoftStringDataType.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
2
3/* SuperSoftStringDataType.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
25namespace DataProvider {
28
31
32public:
34 constructor(*hash<auto> options, *hash<auto> tags) ;
35
36
38 string getName();
39
40
42
47
48
50
55
56
58 string getDesc();
59
60
62 *Type getValueType();
63
64
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
98 static string getStringValue(auto value);
99
101
107
108};
109};
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
*hash< auto > tags
type tags
Definition AbstractDataProviderType.qc.dox.h:155
hash< auto > options
type options
Definition AbstractDataProviderType.qc.dox.h:152
A type that converts to UNIX timestamps in seconds to dates.
Definition SuperSoftStringDataType.qc.dox.h:30
string getShortDescription()
Returns the type's short description.
*Type getValueType()
Returns the base type for the type, if any.
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
hash< string, bool > getAcceptTypeHash(*bool simple)
Returns a hash of types accepted by this type; keys are type names.
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
hash< string, bool > getReturnTypeHash(*bool simple)
Returns a hash of types returned by this type; keys are type names.
string getDisplayName()
Returns the type's display name.
constructor(*hash< auto > options, *hash< auto > tags)
creates the field from the argument
*AbstractDataProviderType getElementType()
Returns the subtype (for lists or hashes) if there is only one.
string getName()
Returns the type name.
static string getStringValue(auto value)
Returns the value if the value can be assigned to the type.
string getDesc()
Returns the description.
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27
const SuperSoftStringDataType
A type that converts almost any type to a string.
Definition SuperSoftStringDataType.qc.dox.h:27