Core/Enum: Rename OpenMode_Current to NotOpen
Former-commit-id: f4395871d68d8f6da5ca6dbcda2177ad6aae2fc8
This commit is contained in:
parent
7f220ce48c
commit
6829863d81
|
|
@ -75,7 +75,7 @@ namespace Nz
|
||||||
|
|
||||||
enum OpenModeFlags
|
enum OpenModeFlags
|
||||||
{
|
{
|
||||||
OpenMode_Current = 0x00, // Utilise le mode d'ouverture actuel
|
OpenMode_NotOpen = 0x00, // Utilise le mode d'ouverture actuel
|
||||||
|
|
||||||
OpenMode_Append = 0x01, // Empêche l'écriture sur la partie déjà existante et met le curseur à la fin
|
OpenMode_Append = 0x01, // Empêche l'écriture sur la partie déjà existante et met le curseur à la fin
|
||||||
OpenMode_Lock = 0x02, // Empêche le fichier d'être modifié tant qu'il est ouvert
|
OpenMode_Lock = 0x02, // Empêche le fichier d'être modifié tant qu'il est ouvert
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ namespace Nz
|
||||||
|
|
||||||
bool IsOpen() const;
|
bool IsOpen() const;
|
||||||
|
|
||||||
bool Open(unsigned int openMode = OpenMode_Current);
|
bool Open(unsigned int openMode = OpenMode_NotOpen);
|
||||||
bool Open(const String& filePath, unsigned int openMode = OpenMode_Current);
|
bool Open(const String& filePath, unsigned int openMode = OpenMode_NotOpen);
|
||||||
|
|
||||||
bool Rename(const String& newFilePath);
|
bool Rename(const String& newFilePath);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
namespace Nz
|
namespace Nz
|
||||||
{
|
{
|
||||||
File::File() :
|
File::File() :
|
||||||
Stream(OpenMode_Current),
|
Stream(OpenMode_NotOpen),
|
||||||
m_impl(nullptr)
|
m_impl(nullptr)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue