mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
37 lines
994 B
C++
37 lines
994 B
C++
#pragma once
|
|
|
|
#include <QMetaType>
|
|
|
|
class QTextStream;
|
|
|
|
namespace caf
|
|
{
|
|
//==================================================================================================
|
|
//
|
|
//==================================================================================================
|
|
class FilePath
|
|
{
|
|
public:
|
|
FilePath();
|
|
FilePath(const QString& filePath);
|
|
|
|
QString path() const;
|
|
void setPath(const QString& valueText);
|
|
|
|
void operator=(const FilePath& other);
|
|
bool operator==(const FilePath& other) const;
|
|
|
|
private:
|
|
QString m_filePath;
|
|
};
|
|
|
|
} // end namespace caf
|
|
|
|
//==================================================================================================
|
|
// Overload of QTextStream
|
|
//==================================================================================================
|
|
QTextStream& operator>>(QTextStream& str, caf::FilePath& filePath);
|
|
QTextStream& operator<<(QTextStream& str, const caf::FilePath& filePath);
|
|
|
|
Q_DECLARE_METATYPE(caf::FilePath);
|