Files
secondo/Algebras/DBService2/MetadataObject.hpp
2026-01-23 17:03:45 +08:00

90 lines
1.8 KiB
C++

/*
1 Metadata Structures and Persistent Storage
1.1 ~MetadataObject~
This is a base class that shall be used for all objects that store metadata of
the ~DBService~.
----
This file is part of SECONDO.
Copyright (C) 2017,
Faculty of Mathematics and Computer Science,
Database Systems for New Applications.
SECONDO is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
SECONDO is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SECONDO; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
----
*/
#ifndef ALGEBRAS_DBSERVICE_METADATAOBJECT_HPP_
#define ALGEBRAS_DBSERVICE_METADATAOBJECT_HPP_
namespace DBService {
/*
1.1.1 Class Definition
*/
class MetadataObject {
public:
/*
1.1.1.1 Constructor
*/
MetadataObject(){};
/*
1.1.1.1 ~parseIdentifier~
This function allows parsing an identifier and thus retrieving the contained
prefix and suffix.
*/
static void parseIdentifier(
const std::string& identifier,
std::string& prefix,
std::string& suffix);
/*
1.1.1.1 ~getSeparator~
This function returns the used separator.
*/
static std::string getSeparator();
/*
1.1.1.1 \textit{separator}
For composing the identifier, a fixed string is used as a separator.
*/
protected:
static std::string separator;
};
} /* namespace DBService */
#endif /* ALGEBRAS_DBSERVICE_METADATAOBJECT_HPP_ */