/usr/include/XdmfSystemUtils.hpp is in libxdmf-dev 3.0+git20160803-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | /*****************************************************************************/
/* XDMF */
/* eXtensible Data Model and Format */
/* */
/* Id : XdmfSystemUtils.hpp */
/* */
/* Author: */
/* Kenneth Leiter */
/* kenneth.leiter@arl.army.mil */
/* US Army Research Laboratory */
/* Aberdeen Proving Ground, MD */
/* */
/* Copyright @ 2011 US Army Research Laboratory */
/* All Rights Reserved */
/* See Copyright.txt for details */
/* */
/* This software is distributed WITHOUT ANY WARRANTY; without */
/* even the implied warranty of MERCHANTABILITY or FITNESS */
/* FOR A PARTICULAR PURPOSE. See the above copyright notice */
/* for more information. */
/* */
/*****************************************************************************/
#ifndef XDMFSYSTEMUTILS_HPP_
#define XDMFSYSTEMUTILS_HPP_
// C Compatible Includes
#include "XdmfCore.hpp"
#ifdef __cplusplus
// Includes
#include <string>
/**
* @brief System specific functions.
*
* Collects all system specific functions needed by Xdmf.
*/
class XDMFCORE_EXPORT XdmfSystemUtils {
public:
/**
* Converts a filesystem path to an absolute real path (absolute
* path with no symlinks)
*
* Example of use:
*
* C++
*
* @dontinclude ExampleXdmfSystemUtils.cpp
* @skipline //#getRealPath
* @until //#getRealPath
*
* Python
*
* @dontinclude XdmfExampleSystemUtils.py
* @skipline #//getRealPath
* @until #//getRealPath
*
* @param path a string containing the path to convert.
*
* @return the equivalent real path.
*/
static std::string getRealPath(const std::string & path);
protected:
XdmfSystemUtils();
~XdmfSystemUtils();
private:
XdmfSystemUtils(const XdmfSystemUtils &); // Not implemented.
void operator=(const XdmfSystemUtils &); // Not implemented.
};
#endif
#ifdef __cplusplus
extern "C" {
#endif
XDMFCORE_EXPORT char * XdmfSystemUtilsGetRealPath(char * path);
#ifdef __cplusplus
}
#endif
#endif /* XDMFSYSTEMUTILS_HPP_ */
|