Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdoc_catch_conversions.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#pragma once
5
7
8#include <qdoc/boundaries/filesystem/directorypath.h>
9#include <qdoc/boundaries/filesystem/filepath.h>
10#include <qdoc/boundaries/filesystem/resolvedfile.h>
11
12#include <ostream>
13
14inline std::ostream& operator<<(std::ostream& os, const DirectoryPath& dirpath) {
15 return os << dirpath.value().toStdString();
16}
17
18inline std::ostream& operator<<(std::ostream& os, const FilePath& filepath) {
19 return os << filepath.value().toStdString();
20}
21
22inline std::ostream& operator<<(std::ostream& os, const ResolvedFile& resolved_file) {
23 return os << "ResolvedFile{ query: " << resolved_file.get_query().toStdString() << ", " << "filepath: " << resolved_file.get_path() << " }";
24}
Represents a file that is reachable by QDoc based on its current configuration.