LibreOffice Module unotest (master) 1
directories.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef INCLUDED_UNOTEST_DIRECTORIES_HXX
11#define INCLUDED_UNOTEST_DIRECTORIES_HXX
12
13#include <sal/config.h>
14
15#include <string_view>
16
17#include <rtl/ustring.hxx>
19
20namespace test
21{
23{
24private:
25 OUString m_aSrcRootURL;
29
30public:
32
33 const OUString& getSrcRootURL() const { return m_aSrcRootURL; }
34 const OUString& getSrcRootPath() const { return m_aSrcRootPath; }
35
36 // return a URL to a given path from the source directory
37 OUString getURLFromSrc(std::u16string_view rPath) const;
38
39 // return a Path to a given path from the source directory
40 OUString getPathFromSrc(std::u16string_view rPath) const;
41
42 // return a URL to a given path from the workdir directory
43 OUString getURLFromWorkdir(std::u16string_view rPath) const;
44
45 // return a Path to a given path from the workdir directory
46 OUString getPathFromWorkdir(std::u16string_view rPath) const;
47};
48}
49
50#endif
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const OUString & getSrcRootPath() const
Definition: directories.hxx:34
OUString m_aSrcRootURL
Definition: directories.hxx:25
OUString m_aWorkdirRootPath
Definition: directories.hxx:28
OUString m_aWorkdirRootURL
Definition: directories.hxx:27
OUString m_aSrcRootPath
Definition: directories.hxx:26
const OUString & getSrcRootURL() const
Definition: directories.hxx:33
#define OOO_DLLPUBLIC_UNOTEST