SAGA API  v9.5
CSG_Tool_Library_Manager Class Reference

#include <tool_library.h>

Public Member Functions

 CSG_Tool_Library_Manager (void)
 
virtual ~CSG_Tool_Library_Manager (void)
 
bool Destroy (void)
 
int Get_Count (void) const
 
int Get_Tool_Count (void) const
 
CSG_Tool_LibraryAdd_Library (const CSG_String &File)
 
CSG_Tool_LibraryAdd_Library (const char *File)
 
CSG_Tool_LibraryAdd_Library (const wchar_t *File)
 
int Add_Directory (const CSG_String &Directory, bool bOnlySubDirectories=false)
 
int Add_Directory (const char *Directory, bool bOnlySubDirectories=false)
 
int Add_Directory (const wchar_t *Directory, bool bOnlySubDirectories=false)
 
bool Del_Library (int i)
 
bool Del_Library (CSG_Tool_Library *pLibrary)
 
CSG_Tool_LibraryGet_Library (int i) const
 
CSG_Tool_LibraryGet_Library (const CSG_String &Name, bool bLibrary) const
 
CSG_Tool_LibraryGet_Library (const char *Name, bool bLibrary) const
 
CSG_Tool_LibraryGet_Library (const wchar_t *Name, bool bLibrary) const
 
bool is_Loaded (CSG_Tool_Library *pLibrary) const
 
CSG_ToolGet_Tool (const CSG_String &Library, int Index) const
 
CSG_ToolGet_Tool (const char *Library, int Index) const
 
CSG_ToolGet_Tool (const wchar_t *Library, int Index) const
 
CSG_ToolGet_Tool (const CSG_String &Library, const CSG_String &Name) const
 
CSG_ToolGet_Tool (const char *Library, const char *Name) const
 
CSG_ToolGet_Tool (const wchar_t *Library, const wchar_t *Name) const
 
CSG_ToolCreate_Tool (const CSG_String &Library, int Index, bool bWithGUI=false) const
 
CSG_ToolCreate_Tool (const char *Library, int Index, bool bWithGUI=false) const
 
CSG_ToolCreate_Tool (const wchar_t *Library, int Index, bool bWithGUI=false) const
 
CSG_ToolCreate_Tool (const CSG_String &Library, const CSG_String &Name, bool bWithGUI=false) const
 
CSG_ToolCreate_Tool (const char *Library, const char *Name, bool bWithGUI=false) const
 
CSG_ToolCreate_Tool (const wchar_t *Library, const wchar_t *Name, bool bWithGUI=false) const
 
bool Delete_Tool (CSG_Tool *pTool) const
 
CSG_String Get_Summary (int Format=SG_SUMMARY_FMT_HTML) const
 
bool Get_Summary (const CSG_String &Path) const
 
bool Create_Python_ToolBox (const CSG_String &Destination, bool bClean=true, bool bName=true, bool bSingleFile=false) const
 

Detailed Description

Definition at line 185 of file tool_library.h.

Constructor & Destructor Documentation

◆ CSG_Tool_Library_Manager()

CSG_Tool_Library_Manager::CSG_Tool_Library_Manager ( void  )

Definition at line 297 of file tool_library.cpp.

References g_Tool_Library_Manager, and CSG_Random::Initialize().

◆ ~CSG_Tool_Library_Manager()

CSG_Tool_Library_Manager::~CSG_Tool_Library_Manager ( void  )
virtual

Definition at line 309 of file tool_library.cpp.

References Destroy().

Member Function Documentation

◆ Add_Directory() [1/3]

int CSG_Tool_Library_Manager::Add_Directory ( const char *  Directory,
bool  bOnlySubDirectories = false 
)

Definition at line 430 of file tool_library.cpp.

References Add_Directory().

◆ Add_Directory() [2/3]

int CSG_Tool_Library_Manager::Add_Directory ( const CSG_String Directory,
bool  bOnlySubDirectories = false 
)

◆ Add_Directory() [3/3]

int CSG_Tool_Library_Manager::Add_Directory ( const wchar_t *  Directory,
bool  bOnlySubDirectories = false 
)

Definition at line 435 of file tool_library.cpp.

References Add_Directory().

◆ Add_Library() [1/3]

CSG_Tool_Library * CSG_Tool_Library_Manager::Add_Library ( const char *  File)

Definition at line 383 of file tool_library.cpp.

References Add_Library().

◆ Add_Library() [2/3]

◆ Add_Library() [3/3]

CSG_Tool_Library * CSG_Tool_Library_Manager::Add_Library ( const wchar_t *  File)

Definition at line 388 of file tool_library.cpp.

References Add_Library().

◆ Create_Python_ToolBox()

◆ Create_Tool() [1/6]

CSG_Tool * CSG_Tool_Library_Manager::Create_Tool ( const char *  Library,
const char *  Name,
bool  bWithGUI = false 
) const

Definition at line 702 of file tool_library.cpp.

References Create_Tool().

◆ Create_Tool() [2/6]

CSG_Tool * CSG_Tool_Library_Manager::Create_Tool ( const char *  Library,
int  Index,
bool  bWithGUI = false 
) const

Definition at line 694 of file tool_library.cpp.

References Create_Tool().

◆ Create_Tool() [3/6]

CSG_Tool * CSG_Tool_Library_Manager::Create_Tool ( const CSG_String Library,
const CSG_String Name,
bool  bWithGUI = false 
) const

◆ Create_Tool() [4/6]

CSG_Tool * CSG_Tool_Library_Manager::Create_Tool ( const CSG_String Library,
int  Index,
bool  bWithGUI = false 
) const

◆ Create_Tool() [5/6]

CSG_Tool * CSG_Tool_Library_Manager::Create_Tool ( const wchar_t *  Library,
const wchar_t *  Name,
bool  bWithGUI = false 
) const

Definition at line 703 of file tool_library.cpp.

References Create_Tool().

◆ Create_Tool() [6/6]

CSG_Tool * CSG_Tool_Library_Manager::Create_Tool ( const wchar_t *  Library,
int  Index,
bool  bWithGUI = false 
) const

Definition at line 695 of file tool_library.cpp.

References Create_Tool().

◆ Del_Library() [1/2]

bool CSG_Tool_Library_Manager::Del_Library ( CSG_Tool_Library pLibrary)

Definition at line 574 of file tool_library.cpp.

References Del_Library(), Get_Count(), and Get_Library().

◆ Del_Library() [2/2]

bool CSG_Tool_Library_Manager::Del_Library ( int  i)

Definition at line 588 of file tool_library.cpp.

References Get_Count(), and SG_Realloc().

Referenced by Del_Library().

◆ Delete_Tool()

bool CSG_Tool_Library_Manager::Delete_Tool ( CSG_Tool pTool) const

◆ Destroy()

bool CSG_Tool_Library_Manager::Destroy ( void  )

Definition at line 543 of file tool_library.cpp.

References Get_Count(), SG_Free(), and SG_UI_Get_Window_Main().

Referenced by ~CSG_Tool_Library_Manager().

◆ Get_Count()

int CSG_Tool_Library_Manager::Get_Count ( void  ) const
inline

◆ Get_Library() [1/4]

CSG_Tool_Library * CSG_Tool_Library_Manager::Get_Library ( const char *  Name,
bool  bLibrary 
) const

Definition at line 628 of file tool_library.cpp.

References Get_Library().

◆ Get_Library() [2/4]

CSG_Tool_Library * CSG_Tool_Library_Manager::Get_Library ( const CSG_String Name,
bool  bLibrary 
) const

◆ Get_Library() [3/4]

CSG_Tool_Library * CSG_Tool_Library_Manager::Get_Library ( const wchar_t *  Name,
bool  bLibrary 
) const

Definition at line 633 of file tool_library.cpp.

References Get_Library().

◆ Get_Library() [4/4]

CSG_Tool_Library* CSG_Tool_Library_Manager::Get_Library ( int  i) const
inline

◆ Get_Summary() [1/2]

bool CSG_Tool_Library_Manager::Get_Summary ( const CSG_String Path) const

◆ Get_Summary() [2/2]

◆ Get_Tool() [1/6]

CSG_Tool * CSG_Tool_Library_Manager::Get_Tool ( const char *  Library,
const char *  Name 
) const

Definition at line 666 of file tool_library.cpp.

References Get_Tool().

◆ Get_Tool() [2/6]

CSG_Tool * CSG_Tool_Library_Manager::Get_Tool ( const char *  Library,
int  Index 
) const

Definition at line 658 of file tool_library.cpp.

References Get_Tool().

◆ Get_Tool() [3/6]

CSG_Tool * CSG_Tool_Library_Manager::Get_Tool ( const CSG_String Library,
const CSG_String Name 
) const

◆ Get_Tool() [4/6]

CSG_Tool * CSG_Tool_Library_Manager::Get_Tool ( const CSG_String Library,
int  Index 
) const

Definition at line 660 of file tool_library.cpp.

References CSG_String::Format().

Referenced by Get_Tool().

◆ Get_Tool() [5/6]

CSG_Tool * CSG_Tool_Library_Manager::Get_Tool ( const wchar_t *  Library,
const wchar_t *  Name 
) const

Definition at line 667 of file tool_library.cpp.

References Get_Tool().

◆ Get_Tool() [6/6]

CSG_Tool * CSG_Tool_Library_Manager::Get_Tool ( const wchar_t *  Library,
int  Index 
) const

Definition at line 659 of file tool_library.cpp.

References Get_Tool().

◆ Get_Tool_Count()

int CSG_Tool_Library_Manager::Get_Tool_Count ( void  ) const

Definition at line 320 of file tool_library.cpp.

References CSG_Tool_Library::Get_Count().

◆ is_Loaded()

bool CSG_Tool_Library_Manager::is_Loaded ( CSG_Tool_Library pLibrary) const

Definition at line 639 of file tool_library.cpp.

References Get_Count(), and Get_Library().


The documentation for this class was generated from the following files: