Code::Blocks  SVN r11506
Functions
ScriptBindings::IOLib Namespace Reference

Functions

bool SecurityAllows (const wxString &operation, const wxString &descr)
 
wxString GetCwd ()
 
void SetCwd (const wxString &dir)
 
bool CreateDirRecursively (const wxString &full_path, int perms)
 
wxString ChooseDir (const wxString &message, const wxString &initialPath, bool showCreateDirButton)
 
bool RemoveDir (const wxString &src)
 
bool DirectoryExists (const wxString &dir)
 
bool CopyFile (const wxString &src, const wxString &dst, bool overwrite)
 
bool RenameFile (const wxString &src, const wxString &dst)
 
bool RemoveFile (const wxString &src)
 
bool FileExists (const wxString &file)
 
wxString ChooseFile (const wxString &title, const wxString &defaultFile, const wxString &filter)
 
wxString ReadFileContents (const wxString &filename)
 
bool WriteFileContents (const wxString &filename, const wxString &contents)
 
int Execute (const wxString &command)
 
wxString ExecuteAndGetOutput (const wxString &command)
 
wxString ExecuteAndGetOutputAndError (const wxString &command, bool prepend_error=true)
 

Function Documentation

◆ ChooseDir()

wxString ScriptBindings::IOLib::ChooseDir ( const wxString message,
const wxString initialPath,
bool  showCreateDirButton 
)

Definition at line 85 of file sc_io.cpp.

References ChooseDirectory(), Manager::Get(), and wxEmptyString.

Referenced by ScriptBindings::Register_IO().

◆ ChooseFile()

wxString ScriptBindings::IOLib::ChooseFile ( const wxString title,
const wxString defaultFile,
const wxString filter 
)

◆ CopyFile()

bool ScriptBindings::IOLib::CopyFile ( const wxString src,
const wxString dst,
bool  overwrite 
)

◆ CreateDirRecursively()

bool ScriptBindings::IOLib::CreateDirRecursively ( const wxString full_path,
int  perms 
)

◆ DirectoryExists()

bool ScriptBindings::IOLib::DirectoryExists ( const wxString dir)

◆ Execute()

int ScriptBindings::IOLib::Execute ( const wxString command)

◆ ExecuteAndGetOutput()

wxString ScriptBindings::IOLib::ExecuteAndGetOutput ( const wxString command)

◆ ExecuteAndGetOutputAndError()

wxString ScriptBindings::IOLib::ExecuteAndGetOutputAndError ( const wxString command,
bool  prepend_error = true 
)

◆ FileExists()

bool ScriptBindings::IOLib::FileExists ( const wxString file)

◆ GetCwd()

wxString ScriptBindings::IOLib::GetCwd ( )

Definition at line 66 of file sc_io.cpp.

References wxGetCwd().

Referenced by ScriptBindings::Register_IO().

◆ ReadFileContents()

wxString ScriptBindings::IOLib::ReadFileContents ( const wxString filename)

◆ RemoveDir()

bool ScriptBindings::IOLib::RemoveDir ( const wxString src)

◆ RemoveFile()

bool ScriptBindings::IOLib::RemoveFile ( const wxString src)

◆ RenameFile()

bool ScriptBindings::IOLib::RenameFile ( const wxString src,
const wxString dst 
)

◆ SecurityAllows()

bool ScriptBindings::IOLib::SecurityAllows ( const wxString operation,
const wxString descr 
)

◆ SetCwd()

void ScriptBindings::IOLib::SetCwd ( const wxString dir)

Definition at line 71 of file sc_io.cpp.

References wxSetWorkingDirectory().

Referenced by ScriptBindings::Register_IO().

◆ WriteFileContents()

bool ScriptBindings::IOLib::WriteFileContents ( const wxString filename,
const wxString contents 
)