[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
57
include/seiscomp/datamodel/exchange/arclink.h
Normal file
57
include/seiscomp/datamodel/exchange/arclink.h
Normal file
@ -0,0 +1,57 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_ARCLINK_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_ARCLINK_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/xml/importer.h>
|
||||
#include <seiscomp/io/xml/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ImporterArclink : public IO::XML::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterArclink();
|
||||
};
|
||||
|
||||
|
||||
class ExporterArclink : public IO::XML::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterArclink();
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
107
include/seiscomp/datamodel/exchange/binary.h
Normal file
107
include/seiscomp/datamodel/exchange/binary.h
Normal file
@ -0,0 +1,107 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_BINARY_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_BINARY_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/xml/importer.h>
|
||||
#include <seiscomp/io/xml/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ImporterBinary : public IO::XML::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterBinary() = default;
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Importer interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
Core::BaseObject *get(std::streambuf* buf) override;
|
||||
};
|
||||
|
||||
|
||||
class ImporterVBinary : public IO::XML::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterVBinary() = default;
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Importer interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
Core::BaseObject *get(std::streambuf* buf) override;
|
||||
};
|
||||
|
||||
|
||||
class ExporterBinary : public IO::XML::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterBinary() = default;
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
bool put(std::streambuf* buf, const IO::ExportObjectList &objects);
|
||||
};
|
||||
|
||||
|
||||
class ExporterVBinary : public IO::XML::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterVBinary() = default;
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
bool put(std::streambuf* buf, const IO::ExportObjectList &objects);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
88
include/seiscomp/datamodel/exchange/bson.h
Normal file
88
include/seiscomp/datamodel/exchange/bson.h
Normal file
@ -0,0 +1,88 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_BSON_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_BSON_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/importer.h>
|
||||
#include <seiscomp/io/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ImporterBSON : public IO::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterBSON();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Importer interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
Core::BaseObject *get(std::streambuf* buf);
|
||||
};
|
||||
|
||||
|
||||
class ExporterBSON : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterBSON();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
};
|
||||
|
||||
|
||||
class ExporterBSONJSON : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterBSONJSON();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
59
include/seiscomp/datamodel/exchange/csv.h
Normal file
59
include/seiscomp/datamodel/exchange/csv.h
Normal file
@ -0,0 +1,59 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_CSV_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_CSV_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ExporterCSV : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterCSV();
|
||||
|
||||
void setDelimiter(std::string &);
|
||||
const std::string& getDelimiter() const;
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
|
||||
private:
|
||||
std::string _delim;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
53
include/seiscomp/datamodel/exchange/hyp71sum2k.h
Normal file
53
include/seiscomp/datamodel/exchange/hyp71sum2k.h
Normal file
@ -0,0 +1,53 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_HYP71SUM2K_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_HYP71SUM2K_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ExporterHYP71SUM2K : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterHYP71SUM2K();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
65
include/seiscomp/datamodel/exchange/ims10.h
Normal file
65
include/seiscomp/datamodel/exchange/ims10.h
Normal file
@ -0,0 +1,65 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_IMS10_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_IMS10_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/exporter.h>
|
||||
#include <seiscomp/datamodel/arrival.h>
|
||||
#include <seiscomp/datamodel/amplitude.h>
|
||||
#include <seiscomp/datamodel/pick.h>
|
||||
#include <seiscomp/datamodel/stationmagnitude.h>
|
||||
#include <seiscomp/datamodel/stationmagnitudecontribution.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ExporterIMS10 : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterIMS10();
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
private:
|
||||
// ------------------------------------------------------------------
|
||||
// Members
|
||||
// ------------------------------------------------------------------
|
||||
std::vector<Seiscomp::DataModel::ArrivalPtr> _arrivalList;
|
||||
std::vector<Seiscomp::DataModel::PickPtr> _pickList;
|
||||
std::vector<Seiscomp::DataModel::AmplitudePtr> _amplitudeList;
|
||||
std::vector<Seiscomp::DataModel::StationMagnitudePtr> _stationMagnitudeList;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
71
include/seiscomp/datamodel/exchange/json.h
Normal file
71
include/seiscomp/datamodel/exchange/json.h
Normal file
@ -0,0 +1,71 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_JSON_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_JSON_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/importer.h>
|
||||
#include <seiscomp/io/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ImporterJSON : public IO::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterJSON();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Importer interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
Core::BaseObject *get(std::streambuf* buf);
|
||||
};
|
||||
|
||||
|
||||
class ExporterJSON : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterJSON();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
108
include/seiscomp/datamodel/exchange/quakeml.h
Normal file
108
include/seiscomp/datamodel/exchange/quakeml.h
Normal file
@ -0,0 +1,108 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_QML_XML_H
|
||||
#define SEISCOMP_QML_XML_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <seiscomp/datamodel/types.h>
|
||||
|
||||
#include <seiscomp/io/xml/exporter.h>
|
||||
#include <seiscomp/io/xml/handler.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
/** @version 15.1 */
|
||||
const char *QML_NS();
|
||||
/** @version 15.1 */
|
||||
const char *QML_NS_RT();
|
||||
/** @version 15.1 */
|
||||
const char *QML_NS_BED();
|
||||
/** @version 15.1 */
|
||||
const char *QML_NS_BED_RT();
|
||||
|
||||
/** @version 15.1 */
|
||||
constexpr const char *QML_SMIPrefixEnvVar = "QML_SMI_PREFIX";
|
||||
/** @version 15.1 */
|
||||
const std::string &QML_SMIPrefix();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace QML {
|
||||
|
||||
|
||||
class TypeMapper {
|
||||
public:
|
||||
/**
|
||||
* @brief Maps an QML event type string to the EventType enumeration.
|
||||
*
|
||||
* If the conversion fails, an ValueException is thrown.
|
||||
*
|
||||
* @param str The input string
|
||||
* @return The mapped event type or an exception
|
||||
*/
|
||||
static DataModel::EventType EventTypeFromString(const std::string &str);
|
||||
|
||||
/**
|
||||
* @brief Maps an EventType to an QML event type string.
|
||||
* @param type The EventType
|
||||
* @return The QML event type string
|
||||
*/
|
||||
static std::string EventTypeToString(DataModel::EventType type);
|
||||
|
||||
/**
|
||||
* @brief Maps an EventTypeCertainty to an QML event type string.
|
||||
* @param type The EventTypeCertainty
|
||||
* @return The QML event type certainty string
|
||||
*/
|
||||
static std::string EventTypeCertaintyToString(DataModel::EventTypeCertainty type);
|
||||
};
|
||||
|
||||
|
||||
class Exporter : public IO::XML::Exporter {
|
||||
public:
|
||||
Exporter();
|
||||
|
||||
protected:
|
||||
void collectNamespaces(Core::BaseObject *) override;
|
||||
};
|
||||
|
||||
|
||||
class RTExporter : public IO::XML::Exporter {
|
||||
public:
|
||||
RTExporter();
|
||||
|
||||
protected:
|
||||
void collectNamespaces(Core::BaseObject *) override;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
65
include/seiscomp/datamodel/exchange/scdm051.h
Normal file
65
include/seiscomp/datamodel/exchange/scdm051.h
Normal file
@ -0,0 +1,65 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_0_51_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_0_51_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/xml/importer.h>
|
||||
#include <seiscomp/io/xml/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
namespace SCDM051 {
|
||||
|
||||
struct GenericHandler : public IO::XML::GenericHandler {
|
||||
GenericHandler();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
class ImporterSCDM051 : public IO::XML::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterSCDM051();
|
||||
};
|
||||
|
||||
|
||||
class ExporterSCDM051 : public IO::XML::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// Xstruction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterSCDM051();
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
72
include/seiscomp/datamodel/exchange/trunk.h
Normal file
72
include/seiscomp/datamodel/exchange/trunk.h
Normal file
@ -0,0 +1,72 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) gempa GmbH *
|
||||
* All rights reserved. *
|
||||
* Contact: gempa GmbH (seiscomp-dev@gempa.de) *
|
||||
* *
|
||||
* GNU Affero General Public License Usage *
|
||||
* This file may be used under the terms of the GNU Affero *
|
||||
* Public License version 3.0 as published by the Free Software Foundation *
|
||||
* and appearing in the file LICENSE included in the packaging of this *
|
||||
* file. Please review the following information to ensure the GNU Affero *
|
||||
* Public License version 3.0 requirements will be met: *
|
||||
* https://www.gnu.org/licenses/agpl-3.0.html. *
|
||||
* *
|
||||
* Other Usage *
|
||||
* Alternatively, this file may be used in accordance with the terms and *
|
||||
* conditions contained in a signed written agreement between you and *
|
||||
* gempa GmbH. *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef SEISCOMP_DATAMODEL_SCDM_TRUNK_EXCHANGE_H
|
||||
#define SEISCOMP_DATAMODEL_SCDM_TRUNK_EXCHANGE_H
|
||||
|
||||
|
||||
#include <seiscomp/io/importer.h>
|
||||
#include <seiscomp/io/exporter.h>
|
||||
|
||||
|
||||
namespace Seiscomp {
|
||||
namespace DataModel {
|
||||
|
||||
|
||||
class ImporterTrunk : public IO::Importer {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ImporterTrunk();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Importer interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
Core::BaseObject *get(std::streambuf* buf);
|
||||
};
|
||||
|
||||
|
||||
class ExporterTrunk : public IO::Exporter {
|
||||
// ------------------------------------------------------------------
|
||||
// X'truction
|
||||
// ------------------------------------------------------------------
|
||||
public:
|
||||
//! C'tor
|
||||
ExporterTrunk();
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Exporter interface
|
||||
// ------------------------------------------------------------------
|
||||
protected:
|
||||
bool put(std::streambuf* buf, Core::BaseObject *);
|
||||
bool put(std::streambuf* buf, const IO::ExportObjectList &objects);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user