Loading...
Searching...
No Matches
FixedLengthBase.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
/* FixedLengthBase Copyright 2015 - 2023 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 FixedLengthUtil {
class FixedLengthBase {
public:
protected:
hash<auto> m_specs;
*hash<auto> m_opts; // encoding, eol, ignore_empty, timezone, etc
const GlobalOptionMap = {
"date_format": "date.format",
"number_format": "number.format",
"timezone": "date.input_timezone",
"encoding": "string.encoding",
};
public:
constructor(hash<auto> m_specs, *hash<auto> m_opts);
*hash<string, AbstractDataField> getRecordType();
};
};
FixedLengthUtil::FixedLengthBase
Base class for fixed-length readers and writers.
Definition: FixedLengthBase.qc.dox.h:29
FixedLengthUtil::FixedLengthBase::m_specs
hash< auto > m_specs
The record specifications.
Definition: FixedLengthBase.qc.dox.h:34
FixedLengthUtil::FixedLengthBase::constructor
constructor(hash< auto > m_specs, *hash< auto > m_opts)
Creates the object from the record specifications.
FixedLengthUtil::FixedLengthBase::GlobalOptionMap
const GlobalOptionMap
Translates from global options to data provider options.
Definition: FixedLengthBase.qc.dox.h:40
FixedLengthUtil::FixedLengthBase::m_opts
*hash< auto > m_opts
Global input or output options.
Definition: FixedLengthBase.qc.dox.h:37
FixedLengthUtil::FixedLengthBase::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the description of the record type, if any.
FixedLengthUtil
The FixedLengthUtil namespace contains all the definitions in the FixedLengthUtil module.
Definition: FixedLengthAbstractIterator.qc.dox.h:27