8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SObject.h"
10#include <QtCore/SFile>
13namespace rsh::ScriptBinding
87 :
public SObjectStatic
112Q_DECLARE_METATYPE(SFile::_SFileDummy);
113Q_DECLARE_METATYPE(
SFile);
119Q_DECLARE_METATYPE(
SFile);
120Q_DECLARE_METATYPE(
SFile);
The Sfile class provides an interface for reading from and writing to files.
Definition: SFile.h:20
OpenModeEnum
Definition: SFile.h:30
@ Append
Definition: SFile.h:34
@ WriteOnly
Definition: SFile.h:32
@ ReadWrite
Definition: SFile.h:33
@ ReadOnly
Definition: SFile.h:31
Boolean IsOpen()
Returns true if the file is open; otherwise returns false. A file is open if it can be read from and/...
String toString()
Get the type of the variable.
Boolean Write(String ToWrite)
Writes the content of string to the file. Returns true if successful; otherwise returns false if an e...
Boolean Remove()
Removes the file specified by the FileName(). Returns true if successful; otherwise returns false.
Boolean Open(OpenModeEnum OpenMode)
Opens the existing file (The file is always open in text mode). Returns true if successful; otherwise...
String ReadLine()
Reads a line from the file.
static String toString()
Get the type of the variable.
Boolean AtEnd()
Returns true if the current read and write position is at the end of the file (i.e....
String ReadAll()
Reads all available data from the file, and returns it as a string.
String FileName()
Return the name set by the SFile constructor.
static SFile New(String name)
Constructs a new file object to represent the file with the given name.
Close()
To close the file.
Boolean Rename(String NewName)
Renames the file currently specified by FileName() to NewName. Returns true if successful; otherwise ...
static Boolean Remove(String fileName)
Removes the file specified by the fileName given. Returns true if successful; otherwise returns false...
Boolean Exists()
To check if the file exists.
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35