Files
ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafFilePath.h

37 lines
982 B
C
Raw Normal View History

#pragma once
#include <QMetaType>
#include <QString>
class QTextStream;
namespace caf
{
//==================================================================================================
//
//==================================================================================================
class FilePath
{
public:
FilePath();
2020-06-19 07:53:59 +02:00
FilePath( const QString& filePath );
QString path() const;
2020-06-19 07:53:59 +02:00
void setPath( const QString& valueText );
2020-06-19 07:53:59 +02:00
bool operator==( const FilePath& other ) const;
private:
QString m_filePath;
};
} // end namespace caf
//==================================================================================================
// Overload of QTextStream
//==================================================================================================
2020-06-19 07:53:59 +02:00
QTextStream& operator>>( QTextStream& str, caf::FilePath& filePath );
QTextStream& operator<<( QTextStream& str, const caf::FilePath& filePath );
2020-06-19 07:53:59 +02:00
Q_DECLARE_METATYPE( caf::FilePath );