mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
37 lines
982 B
C++
37 lines
982 B
C++
#pragma once
|
|
|
|
#include <QMetaType>
|
|
#include <QString>
|
|
|
|
class QTextStream;
|
|
|
|
namespace caf
|
|
{
|
|
//==================================================================================================
|
|
//
|
|
//==================================================================================================
|
|
class FilePath
|
|
{
|
|
public:
|
|
FilePath();
|
|
FilePath( const QString& filePath );
|
|
|
|
QString path() const;
|
|
void setPath( const QString& valueText );
|
|
|
|
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 );
|