SAGA API  v9.6
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
 
bool Add_Default_Libraries (bool bVerbose=false)
 
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, ESG_Library_Type Type=ESG_Library_Type::Undefined) const
 
CSG_Tool_LibraryGet_Library (const char *Name, bool bLibrary, ESG_Library_Type Type=ESG_Library_Type::Undefined) const
 
CSG_Tool_LibraryGet_Library (const wchar_t *Name, bool bLibrary, ESG_Library_Type Type=ESG_Library_Type::Undefined) 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, bool bWithCMD=true) const
 
CSG_ToolCreate_Tool (const char *Library, int Index, bool bWithGUI=false, bool bWithCMD=true) const
 
CSG_ToolCreate_Tool (const wchar_t *Library, int Index, bool bWithGUI=false, bool bWithCMD=true) const
 
CSG_ToolCreate_Tool (const CSG_String &Library, const CSG_String &Name, bool bWithGUI=false, bool bWithCMD=true) const
 
CSG_ToolCreate_Tool (const char *Library, const char *Name, bool bWithGUI=false, bool bWithCMD=true) const
 
CSG_ToolCreate_Tool (const wchar_t *Library, const wchar_t *Name, bool bWithGUI=false, bool bWithCMD=true) 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 183 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_Default_Libraries()

◆ Add_Directory() [1/3]

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

Definition at line 464 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 
)

Definition at line 466 of file tool_library.cpp.

References Add_Library(), CSG_String::c_str(), and SG_File_Make_Path().

Referenced by Add_Default_Libraries(), and Add_Directory().

◆ Add_Directory() [3/3]

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

Definition at line 465 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 407 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 408 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,
bool  bWithCMD = true 
) const

Definition at line 842 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,
bool  bWithCMD = true 
) const

Definition at line 834 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,
bool  bWithCMD = true 
) const

◆ Create_Tool() [4/6]

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

◆ Create_Tool() [5/6]

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

Definition at line 843 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,
bool  bWithCMD = true 
) const

Definition at line 835 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 637 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 651 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 606 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,
ESG_Library_Type  Type = ESG_Library_Type::Undefined 
) const

Definition at line 690 of file tool_library.cpp.

References Get_Library().

◆ Get_Library() [2/4]

◆ Get_Library() [3/4]

CSG_Tool_Library * CSG_Tool_Library_Manager::Get_Library ( const wchar_t *  Name,
bool  bLibrary,
ESG_Library_Type  Type = ESG_Library_Type::Undefined 
) const

Definition at line 691 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 806 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 798 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 800 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 807 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 799 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 671 of file tool_library.cpp.

References Get_Count(), and Get_Library().


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