path_stack.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2012 Equinor ASA, Norway.
3
4 The file 'path_stack.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19
20#ifndef ERT_PATH_STACK_H
21#define ERT_PATH_STACK_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27 typedef struct path_stack_struct path_stack_type;
28
30 void path_stack_pop( path_stack_type * path_stack );
32 bool path_stack_push( path_stack_type * path_stack , const char * path );
33 void path_stack_free( path_stack_type * path_stack );
34 int path_stack_size( const path_stack_type * path_stack );
35
36#ifdef __cplusplus
37}
38#endif
39
40
41#endif
void path_stack_push_cwd(path_stack_type *path_stack)
int path_stack_size(const path_stack_type *path_stack)
void path_stack_pop(path_stack_type *path_stack)
bool path_stack_push(path_stack_type *path_stack, const char *path)
path_stack_type * path_stack_alloc()
struct path_stack_struct path_stack_type
Definition: path_stack.hpp:27
void path_stack_free(path_stack_type *path_stack)