/*************************************************************************** * 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_TIMEARRAY_H #define SEISCOMP_DATAMODEL_TIMEARRAY_H #include #include #include #include #include namespace Seiscomp { namespace DataModel { DEFINE_SMARTPOINTER(TimeArray); class SC_SYSTEM_CORE_API TimeArray : public Core::BaseObject { DECLARE_SC_CLASS(TimeArray) DECLARE_SERIALIZATION; DECLARE_METAOBJECT; // ------------------------------------------------------------------ // Xstruction // ------------------------------------------------------------------ public: //! Constructor TimeArray(); //! Copy constructor TimeArray(const TimeArray& other); //! Destructor ~TimeArray() override; // ------------------------------------------------------------------ // Operators // ------------------------------------------------------------------ public: //! Copies the metadata of other to this TimeArray& operator=(const TimeArray& other); //! Checks for equality of two objects. Child objects //! are not part of the check. bool operator==(const TimeArray& other) const; bool operator!=(const TimeArray& other) const; //! Wrapper that calls operator== bool equal(const TimeArray& other) const; // ------------------------------------------------------------------ // Setters/Getters // ------------------------------------------------------------------ public: void setContent(const std::vector< Seiscomp::Core::Time >&); const std::vector< Seiscomp::Core::Time >& content() const; std::vector< Seiscomp::Core::Time >& content(); // ------------------------------------------------------------------ // Implementation // ------------------------------------------------------------------ private: // Attributes std::vector< Seiscomp::Core::Time > _content; }; } } #endif