b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2path.H
Go to the documentation of this file.
1//------------------------------------------------------------------------
2// b2path.H --
3//
4//
5// written by Mathias Doreille
6//
7// Copyright (c) 2004-2012 SMR Engineering & Development SA
8// 2502 Bienne, Switzerland
9//
10// All Rights Reserved. Proprietary source code. The contents of
11// this file may not be disclosed to third parties, copied or
12// duplicated in any form, in whole or in part, without the prior
13// written permission of SMR.
14//------------------------------------------------------------------------
15
16#ifndef __B2PATH_H__
17#define __B2PATH_H__
18
19#include <string>
20
31namespace b2000 { namespace path {
32
36bool isabs(const std::string& path);
37
43bool isfile(const std::string& path);
44
50bool isdir(const std::string& path);
51
56bool islink(const std::string& path);
57
63bool isexec(const std::string& path);
64
67std::string getcwd();
68
71std::string dirname(const std::string& path);
72
75std::string basename(const std::string& path);
76
80std::pair<std::string, std::string> splitext(const std::string& path);
81
82std::pair<std::string, std::string> spliturl(const std::string& path);
83
90std::string abspath(const std::string& path);
91
94std::string realpath(const std::string& path);
95
99std::string which(const std::string& cmd);
100
102std::string join(const std::string& a, const std::string& b);
103
105void rmtree(const std::string& path, bool ignore_errors = false);
106}} // namespace b2000::path
107
108#endif
std::string which(const std::string &cmd)
Definition b2path.C:149
std::string join(const std::string &a, const std::string &b)
Definition b2path.C:165
void rmtree(const std::string &path, bool ignore_errors=false)
Definition b2path.C:169
bool isabs(const std::string &path)
Definition b2path.C:33
bool isfile(const std::string &path)
Definition b2path.C:35
std::string basename(const std::string &path)
Definition b2path.C:76
std::string abspath(const std::string &path)
Definition b2path.C:99
std::pair< std::string, std::string > splitext(const std::string &path)
Definition b2path.C:81
bool isexec(const std::string &path)
Definition b2path.C:55
std::string getcwd()
Definition b2path.C:61
std::string realpath(const std::string &path)
Definition b2path.C:124
std::string dirname(const std::string &path)
Definition b2path.C:67
bool islink(const std::string &path)
Definition b2path.C:49
bool isdir(const std::string &path)
Definition b2path.C:41
Contains the base classes for implementing Finite Elements.
Definition b2boundary_condition.H:32