Files
ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafFilePath.h
2018-01-11 13:50:26 +01:00

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);