summaryrefslogtreecommitdiffstats
path: root/src/qdoc/catch_conversions/src/catch_conversions/qdoc_catch_conversions.h
blob: d1079561b54f60a150892ea9e79fce3fe9be33b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "qt_catch_conversions.h"

#include <qdoc/boundaries/filesystem/directorypath.h>
#include <qdoc/boundaries/filesystem/filepath.h>
#include <qdoc/boundaries/filesystem/resolvedfile.h>

#include <ostream>

inline std::ostream& operator<<(std::ostream& os, const DirectoryPath& dirpath) {
    return os << dirpath.value().toStdString();
}

inline std::ostream& operator<<(std::ostream& os, const FilePath& filepath) {
    return os << filepath.value().toStdString();
}

inline std::ostream& operator<<(std::ostream& os, const ResolvedFile& resolved_file) {
    return os << "ResolvedFile{ query: " << resolved_file.get_query().toStdString() << ", " << "filepath: " << resolved_file.get_path() << " }";
}