Aimsun Next Scripting
24.0
|
Public Member Functions | |
GKFilePath () | |
GKFilePath (const GKModel &model, const QString &path) | |
bool | isRelative () const |
bool | isAbsolute () const |
bool | isInsideProject () const |
bool | isEmpty () const |
bool | exists () const |
const QString & | string () const |
const QString | path () const |
const QString | fileName () const |
QString | getProjectPath () const |
QString | getRelativePath () const |
MethodCode | if (const auto relPath=sipCpp->getRelativePath()) |
End QString | getAbsolutePath () const |
const GKModel * | getModel () const |
void | setPath (const GKModel &model, const QString &path) |
void | setPath (const QString &path) |
bool | toRelativePath () |
void | toAbsolutePath () |
bool | mkpath (bool isFile) const |
Public Attributes | |
else | |
GKFilePath::GKFilePath | ( | ) |
GKFilePath::GKFilePath | ( | const GKModel & | model, |
const QString & | path | ||
) |
bool GKFilePath::exists | ( | ) | const |
Returns true if the file path exists.
const QString GKFilePath::fileName | ( | ) | const |
Returns the name of the file, excluding the path.
End QString GKFilePath::getAbsolutePath | ( | ) | const |
Returns the path as an absolute path.
const GKModel * GKFilePath::getModel | ( | ) | const |
Returns the model.
QString GKFilePath::getProjectPath | ( | ) | const |
Return the path of the Project folder.
QString GKFilePath::getRelativePath | ( | ) | const |
Returns the path as a relative path if it's inside the Project folder.
|
inline |
bool GKFilePath::isAbsolute | ( | ) | const |
Returns true if the path is absolute.
bool GKFilePath::isEmpty | ( | ) | const |
Check if the path is empty.
bool GKFilePath::isInsideProject | ( | ) | const |
Returns true if the path is inside the Project folder or if it's relative.
bool GKFilePath::isRelative | ( | ) | const |
Returns true if the path is relative.
bool GKFilePath::mkpath | ( | bool | isFile | ) | const |
Creates the directory and all parent directories.
const QString GKFilePath::path | ( | ) | const |
Returns the file's path. This doesn't include the file name.
void GKFilePath::setPath | ( | const GKModel & | model, |
const QString & | path | ||
) |
Set the model and path.
void GKFilePath::setPath | ( | const QString & | path | ) |
Set the model and path.
const QString & GKFilePath::string | ( | ) | const |
Returns the file name, including the path (which may be absolute or relative).
void GKFilePath::toAbsolutePath | ( | ) |
Changes the path to an absolute path.
bool GKFilePath::toRelativePath | ( | ) |
Changes the path to a relative path if it's inside the Project folder.
GKFilePath::else |