ICF 3.0.5.47
Technical documentation of ICF Libraries
CFileNameParam.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
10#include <iser/ISerializable.h>
12
13
14namespace ifile
15{
16
17
21class CFileNameParam: virtual public IFileNameParam
22{
23public:
24 CFileNameParam(const QString& path = "");
25
26 // reimplemented (ifile::IFileNameParam)
27 int GetPathType() const override;
28 const QString& GetPath() const override;
29 void SetPath(const QString& path) override;
30
31 // reimplemented (iser::ISerializable)
32 bool Serialize(iser::IArchive& archive) override;
33
34 // reimplemented (istd::IChangeable)
35 int GetSupportedOperations() const override;
36 bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
37 bool IsEqual(const IChangeable& object) const override;
38
39protected:
40 QString m_path;
41};
42
43
44} // namespace ifile
45
46
Basic implementation of interface ifile::IFileNameParam.
bool IsEqual(const IChangeable &object) const override
CFileNameParam(const QString &path="")
const QString & GetPath() const override
Get path.
int GetPathType() const override
Get intended type of the path.
int GetSupportedOperations() const override
Get set of flags for supported operations.
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
void SetPath(const QString &path) override
Set path.
Common interface for any file system item name (e.g directory, file or URL path)
Represent input/output persistence archive.
Definition IArchive.h:33
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Contains interfaces and implementations of file system related components.

© Witold Gantzke and Kirill Lepskiy