Skip to content

Commit

Permalink
feat(toc): make cat exists() public
Browse files Browse the repository at this point in the history
  • Loading branch information
mcakircali committed Jan 20, 2025
1 parent dc2cda7 commit 464040e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/fdb5/toc/TocCatalogue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
#include "fdb5/rules/Rule.h"
#include "fdb5/toc/RootManager.h"
#include "fdb5/toc/TocCatalogue.h"
#include "fdb5/toc/TocEngine.h"
#include "fdb5/toc/TocMoveVisitor.h"
#include "fdb5/toc/TocPurgeVisitor.h"
#include "fdb5/toc/TocStats.h"
#include "fdb5/toc/TocWipeVisitor.h"
#include "fdb5/toc/TocMoveVisitor.h"

using namespace eckit;

Expand Down
5 changes: 3 additions & 2 deletions src/fdb5/toc/TocCatalogue.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "fdb5/rules/Schema.h"
#include "fdb5/toc/FileSpace.h"
#include "fdb5/toc/TocHandler.h"
#include "fdb5/toc/TocEngine.h"

namespace fdb5 {

Expand All @@ -45,6 +44,8 @@ class TocCatalogue : public CatalogueImpl, public TocHandler {

bool enabled(const ControlIdentifier& controlIdentifier) const override;

bool exists() const override;

public: // constants
static const std::string DUMP_PARAM_WALKSUBTOC;

Expand All @@ -60,7 +61,7 @@ class TocCatalogue : public CatalogueImpl, public TocHandler {
std::vector<Key>* remapKeys = nullptr) const;

void checkUID() const override;
bool exists() const override;

void dump(std::ostream& out, bool simple, const eckit::Configuration& conf) const override;
std::vector<eckit::PathName> metadataPaths() const override;
const Schema& schema() const override;
Expand Down

0 comments on commit 464040e

Please sign in to comment.