CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
file_system_info.h
1
2#ifndef _file_system_info_h_
3#define _file_system_info_h_
4
5#include "fwd.h"
6#include "system/object.h"
7#include "system/io/file.h"
8#include "system/io/file.h"
9#include "system/io/path.h"
10
11namespace System { namespace IO {
14 public:
24 int64_t size;
25 };
26
31 class ASPOSECPP_SHARED_CLASS FileSystemInfo : public Object {
32 protected:
34 ASPOSECPP_SHARED_API FileSystemInfo();
40
41 public:
42 //********* Properties
44 ASPOSECPP_SHARED_API FileAttributes get_Attributes();
47 ASPOSECPP_SHARED_API void set_Attributes(FileAttributes value);
49 ASPOSECPP_SHARED_API DateTime get_CreationTime();
52 ASPOSECPP_SHARED_API void set_CreationTime(DateTime value);
54 ASPOSECPP_SHARED_API DateTime get_CreationTimeUtc();
57 ASPOSECPP_SHARED_API void set_CreationTimeUtc(DateTime value);
59 ASPOSECPP_SHARED_API DateTime get_LastAccessTime();
62 ASPOSECPP_SHARED_API void set_LastAccessTime(DateTime value);
64 ASPOSECPP_SHARED_API DateTime get_LastAccessTimeUtc();
67 ASPOSECPP_SHARED_API void set_LastAccessTimeUtc(DateTime value);
69 ASPOSECPP_SHARED_API DateTime get_LastWriteTime();
72 ASPOSECPP_SHARED_API void set_LastWriteTime(DateTime value);
74 ASPOSECPP_SHARED_API DateTime get_LastWriteTimeUtc();
77 ASPOSECPP_SHARED_API void set_LastWriteTimeUtc(DateTime value);
81 virtual ASPOSECPP_SHARED_API bool get_Exists() = 0;
83 ASPOSECPP_SHARED_API String get_Extension();
85 virtual ASPOSECPP_SHARED_API String get_FullName();
87 virtual ASPOSECPP_SHARED_API String get_Name() = 0;
88
89 //********* Methods
91 virtual ASPOSECPP_SHARED_API void Delete() = 0;
93 virtual ASPOSECPP_SHARED_API void Finalize();
95 ASPOSECPP_SHARED_API void Refresh();
96
97 protected:
101 bool valid;
105 ASPOSECPP_SHARED_API void Refresh(bool force);
106 };
107
108}}
109
110#endif // _file_system_info_h_
111
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
The base class for FileInfo and DirectoryInfo. Objects of this class should only be allocated using S...
Definition: file_system_info.h:31
void set_LastWriteTimeUtc(DateTime value)
Sets the last write time of the entity represented by the current object as UTC time.
void set_LastAccessTime(DateTime value)
Sets the last access time of the entity represented by the current object as local time.
void Refresh()
Refreshes the state of the current object.
FileSystemInfo()
Constructs a new instance of FileSystemInfo class.
void set_LastWriteTime(DateTime value)
Sets the last write time of the entity represented by the current object as local time.
void Refresh(bool force)
Refreshes the state of the current object.
void set_LastAccessTimeUtc(DateTime value)
Sets the last access time of the entity represented by the current object as UTC time.
void set_Attributes(FileAttributes value)
Sets the specified attributes on the entity represeted by the current object.
String get_Extension()
Returns the extension of the file represented by the current object.
DateTime get_LastWriteTime()
Returns the last write time of the entity represented by the current object as local time.
FileSystemInfoStat info
Information describing the entity represented by the current object.
Definition: file_system_info.h:99
virtual String get_Name()=0
Returns a name of the entity represented by the current object.
void set_CreationTimeUtc(DateTime value)
Sets the creation time of the entity represented by the current object as UTC time.
DateTime get_LastAccessTimeUtc()
Returns the last access time of the entity represented by the current object as UTC time.
virtual bool get_Exists()=0
Determines if the entity referenced by the path represented by the current object exists.
virtual void Delete()=0
Deletes the entity represented by the current object.
DateTime get_LastWriteTimeUtc()
Returns the last write time of the entity represented by the current object as UTC time.
DateTime get_CreationTimeUtc()
Returns the creation time of the entity represented by the current object as UTC time.
String OriginalPath
The original path, passed to the current object's constructor, of the entity represented by the curre...
Definition: file_system_info.h:39
bool valid
Indicates if the path represented by the current object references an existing entity.
Definition: file_system_info.h:101
virtual void Finalize()
Does nothing.
virtual String get_FullName()
Returns the full name (including path) of the entity represented by the current object.
void set_CreationTime(DateTime value)
Sets the creation time of the entity represented by the current object as local time.
String FullPath
The full path of the entity represented by the current object.
Definition: file_system_info.h:36
DateTime get_CreationTime()
Returns the creation time of the entity represented by the current object as local time.
FileAttributes get_Attributes()
Returns the attributes of the entity represented by the current object.
DateTime get_LastAccessTime()
Returns the last access time of the entity represented by the current object as local time.
Represents information about a file or directory.
Definition: file_system_info.h:13
FileAttributes attr
Attributes of a file or a directory.
Definition: file_system_info.h:16
DateTime wTime
Last write time.
Definition: file_system_info.h:20
int64_t size
File size in bytes.
Definition: file_system_info.h:24
DateTime cTime
Creation time.
Definition: file_system_info.h:18
DateTime aTime
Last access time.
Definition: file_system_info.h:22
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
FileAttributes
Represents attributes of a directory or a file.
Definition: file_attributes.h:9
Definition: db_command.h:9