Loading...
Searching...
No Matches
UnixTimestampOrNothingType.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
/* UnixTimestampOrNothingType.qc Copyright (C) 2025 Qore Technologies s.r.o.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
namespace DataProvider {
const UnixTimestampOrNothingType = new UnixTimestampOrNothingType();
class UnixTimestampOrNothingType : public UnixTimestampType {
public:
constructor(*hash<auto> options, *hash<auto> tags) ;
string getName();
string getDisplayName();
string getShortDescription();
string getDesc();
*Type getValueType();
hash<string, bool> getAcceptTypeHash(*bool simple);
hash<string, bool> getReturnTypeHash(*bool simple);
auto acceptsValue(auto value);
AbstractDataProviderType getMandatoryType();
};
};
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::UnixTimestampOrNothingType
A type that converts dates to UNIX timestamps in seconds.
Definition UnixTimestampOrNothingType.qc.dox.h:30
DataProvider::UnixTimestampOrNothingType::getReturnTypeHash
hash< string, bool > getReturnTypeHash(*bool simple)
Returns a hash of types returned by this type; keys are type names.
DataProvider::UnixTimestampOrNothingType::getName
string getName()
Returns the type name.
DataProvider::UnixTimestampOrNothingType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider::UnixTimestampOrNothingType::getMandatoryType
AbstractDataProviderType getMandatoryType()
Returns a mandatory (i.e. not "or nothing") type equivalent to the current type.
DataProvider::UnixTimestampOrNothingType::getValueType
*Type getValueType()
Returns the base type for the type, if any.
DataProvider::UnixTimestampOrNothingType::getDesc
string getDesc()
Returns the description.
DataProvider::UnixTimestampOrNothingType::getShortDescription
string getShortDescription()
Returns the type's short description.
DataProvider::UnixTimestampOrNothingType::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash(*bool simple)
Returns a hash of types accepted by this type; keys are type names.
DataProvider::UnixTimestampOrNothingType::constructor
constructor(*hash< auto > options, *hash< auto > tags)
creates the field from the argument
DataProvider::UnixTimestampOrNothingType::getDisplayName
string getDisplayName()
Returns the type's display name.
DataProvider::UnixTimestampType
A type that converts dates to UNIX timestamps in seconds.
Definition UnixTimestampType.qc.dox.h:30
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27
DataProvider::UnixTimestampOrNothingType
const UnixTimestampOrNothingType
A type that converts dates to UNIX timestamps in seconds.
Definition UnixTimestampOrNothingType.qc.dox.h:27