Skip to content

Commit

Permalink
[feat] Add parallax implementation on top of daos catalogue and store
Browse files Browse the repository at this point in the history
  • Loading branch information
Toutou98 committed Jul 16, 2024
1 parent 06f5766 commit 4e1c04c
Show file tree
Hide file tree
Showing 2 changed files with 277 additions and 711 deletions.
47 changes: 47 additions & 0 deletions src/dummy_daos/dummy_parallax.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*

This comment has been minimized.

Copy link
@gesalous

gesalous Jul 16, 2024

Collaborator

Remove the top section, we need to replace with FORTH's corresponding license

* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergovernmental organisation nor
* does it submit to any jurisdiction.
*/

/*
* @file dummy_daos.cc
* @author Nicolau Manubens
* @date Jun 2022
*/

#include "dummy_daos.h"

#include "eckit/config/Resource.h"
#include "eckit/exception/Exceptions.h"

using eckit::PathName;

//----------------------------------------------------------------------------------------------------------------------

typedef struct daos_handle_internal_t {
PathName path;
} daos_handle_internal_t;

//----------------------------------------------------------------------------------------------------------------------

const PathName& dummy_daos_root() {

static PathName tmpdir = eckit::Resource<PathName>("$TMPDIR", "/tmp");
static PathName daos_root = eckit::Resource<PathName>("$DUMMY_DAOS_DATA_ROOT", tmpdir / "parallax");
return daos_root;

}

const PathName& dummy_daos_get_handle_path(daos_handle_t handle) {

ASSERT(handle.impl);
return handle.impl->path;

}

//----------------------------------------------------------------------------------------------------------------------
Loading

0 comments on commit 4e1c04c

Please sign in to comment.