SAGA API
v9.6
|
#include <tool_library.h>
Public Member Functions | |
virtual ESG_Library_Type | Get_Type (void) const |
bool | is_Valid (void) const |
const CSG_String & | Get_File_Name (void) const |
const CSG_String & | Get_Library_Name (void) const |
virtual CSG_String | Get_Info (int Type) const |
CSG_String | Get_Name (void) const |
CSG_String | Get_Description (void) const |
CSG_String | Get_Author (void) const |
CSG_String | Get_Version (void) const |
CSG_String | Get_Menu (void) const |
CSG_String | Get_Category (void) const |
CSG_String | Get_Summary (int Format=SG_SUMMARY_FMT_HTML, bool bInteractive=true) const |
bool | Get_Summary (const CSG_String &Path) const |
virtual int | Get_Count (void) const |
virtual CSG_Tool * | Get_Tool (int Index, TSG_Tool_Type Type=TOOL_TYPE_Base) const |
virtual CSG_Tool * | Get_Tool (const CSG_String &Name, TSG_Tool_Type Type=TOOL_TYPE_Base) const |
virtual CSG_Tool * | Get_Tool (const char *Name, TSG_Tool_Type Type=TOOL_TYPE_Base) const |
virtual CSG_Tool * | Get_Tool (const wchar_t *Name, TSG_Tool_Type Type=TOOL_TYPE_Base) const |
virtual CSG_Tool * | Create_Tool (int Index, bool bWithGUI=false, bool bWithCMD=true) |
virtual CSG_Tool * | Create_Tool (const CSG_String &Name, bool bWithGUI=false, bool bWithCMD=true) |
virtual CSG_Tool * | Create_Tool (const char *Name, bool bWithGUI=false, bool bWithCMD=true) |
virtual CSG_Tool * | Create_Tool (const wchar_t *Name, bool bWithGUI=false, bool bWithCMD=true) |
virtual bool | Delete_Tool (CSG_Tool *pTool) |
virtual bool | Delete_Tools (void) |
virtual CSG_String | Get_File_Name (int i) const |
virtual CSG_String | Get_Menu (int i) const |
void | Add_Reference (const CSG_String &Authors, const CSG_String &Year, const CSG_String &Title, const CSG_String &Where, const SG_Char *Link=NULL, const SG_Char *Link_Text=NULL) |
void | Add_Reference (const CSG_String &Link, const SG_Char *Link_Text=NULL) |
void | Del_References (void) |
const CSG_Strings & | Get_References (void) const |
Protected Member Functions | |
CSG_Tool_Library (void) | |
CSG_Tool_Library (const CSG_String &File) | |
virtual | ~CSG_Tool_Library (void) |
Protected Attributes | |
CSG_String | m_File_Name |
CSG_String | m_Library_Name |
Friends | |
class | CSG_Tool_Library_Manager |
Definition at line 104 of file tool_library.h.
|
protected |
Definition at line 68 of file tool_library.cpp.
|
protected |
Definition at line 75 of file tool_library.cpp.
References CSG_Tool_Library_Interface::Get_Count(), CSG_Tool_Library_Interface::Get_Info(), m_File_Name, m_Library_Name, SG_File_Get_Path_Absolute(), SYMBOL_TLB_Finalize, SYMBOL_TLB_Get_Interface, SYMBOL_TLB_Initialize, TLB_INFO_File, and TLB_INFO_Library.
|
protectedvirtual |
Definition at line 100 of file tool_library.cpp.
void CSG_Tool_Library::Add_Reference | ( | const CSG_String & | Authors, |
const CSG_String & | Year, | ||
const CSG_String & | Title, | ||
const CSG_String & | Where, | ||
const SG_Char * | Link = NULL , |
||
const SG_Char * | Link_Text = NULL |
||
) |
Definition at line 242 of file tool_library.cpp.
References CSG_String::c_str(), CSG_String::Format(), CSG_String::is_Empty(), CSG_String::Printf(), and CSG_Strings::Sort().
void CSG_Tool_Library::Add_Reference | ( | const CSG_String & | Link, |
const SG_Char * | Link_Text = NULL |
||
) |
Definition at line 262 of file tool_library.cpp.
References CSG_String::c_str(), CSG_String::Format(), and CSG_Strings::Sort().
|
virtual |
Definition at line 196 of file tool_library.cpp.
References Create_Tool().
|
virtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 198 of file tool_library.cpp.
References CSG_String::asInt(), and Create_Tool().
|
virtual |
Definition at line 197 of file tool_library.cpp.
References Create_Tool().
|
virtual |
Creates a new instance of the requested tool in addition to the standard-wise created instance that you can request with the 'Get_Tool() functions. Tools created with this function are collected in a separate internal list and can be removed from memory with the 'Delete_Tool()' function. This way of tool creation is necessary, if you want to run a tool simultaneously with different settings.
Definition at line 190 of file tool_library.cpp.
References CSG_Tool_Library_Interface::Create_Tool().
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), Create_Tool(), and CSG_Tool_Library_Manager::Create_Tool().
void CSG_Tool_Library::Del_References | ( | void | ) |
Definition at line 270 of file tool_library.cpp.
References CSG_Strings::Clear().
|
virtual |
Deletes a tool that has been created previously with a call to the 'Create_Tool()' function.
Reimplemented in CSG_Tool_Chains.
Definition at line 209 of file tool_library.cpp.
References CSG_Tool_Library_Interface::Delete_Tool().
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), and CSG_Tool_Library_Manager::Delete_Tool().
|
virtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 215 of file tool_library.cpp.
References CSG_Tool_Library_Interface::Delete_Tools().
|
inline |
Definition at line 120 of file tool_library.h.
References TLB_INFO_Author.
|
inline |
Definition at line 123 of file tool_library.h.
References TLB_INFO_Category.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox().
|
inlinevirtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 128 of file tool_library.h.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Tool_Chains::Get_File_Name(), CSG_Tool_Library_Manager::Get_Summary(), Get_Summary(), Get_Tool(), and CSG_Tool_Library_Manager::Get_Tool_Count().
|
inline |
Definition at line 119 of file tool_library.h.
References TLB_INFO_Description.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox().
|
inlinevirtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 143 of file tool_library.h.
|
inline |
Definition at line 114 of file tool_library.h.
Referenced by CSG_Tool_Library_Manager::Add_Library(), and Get_Summary().
|
virtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 133 of file tool_library.cpp.
References CSG_Tool_Library_Interface::Get_Info().
Referenced by Get_Summary().
|
inline |
Definition at line 115 of file tool_library.h.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Tool_Library_Manager::Create_Tool(), CSG_Tool_Library_Manager::Get_Library(), CSG_Tool_Library_Manager::Get_Summary(), Get_Summary(), and CSG_Tool_Library_Manager::Get_Tool().
|
virtual |
Definition at line 226 of file tool_library.cpp.
References Get_Tool().
|
inline |
Definition at line 122 of file tool_library.h.
References TLB_INFO_Menu_Path.
|
inline |
Definition at line 118 of file tool_library.h.
References TLB_INFO_Name.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Tool_Library_Manager::Get_Library(), and Get_Summary().
|
inline |
Definition at line 149 of file tool_library.h.
Referenced by Get_Summary().
bool CSG_Tool_Library::Get_Summary | ( | const CSG_String & | Path | ) | const |
Definition at line 763 of file tool_summary.cpp.
References Get_Count(), Get_Library_Name(), CSG_Tool::Get_Summary(), Get_Summary(), Get_Tool(), CSG_File::Open(), SG_File_Make_Path(), SG_FILE_W, and CSG_File::Write().
CSG_String CSG_Tool_Library::Get_Summary | ( | int | Format = SG_SUMMARY_FMT_HTML , |
bool | bInteractive = true |
||
) | const |
Definition at line 621 of file tool_summary.cpp.
References _TL, CSG_String::c_str(), CSG_String::Format(), CSG_Strings::Get_Count(), Get_Count(), Get_File_Name(), CSG_Tool::Get_ID(), Get_Info(), Get_Library_Name(), CSG_Tool::Get_Name(), Get_Name(), Get_References(), Get_Tool(), CSG_String::is_Empty(), CSG_Tool::needs_GUI(), CSG_String::Replace(), SG_HTML_Tag_Replacer(), SG_SUMMARY_FMT_FLAT, SG_SUMMARY_FMT_HTML, SG_SUMMARY_FMT_XML, SG_T, SG_XML_LIBRARY, SG_XML_LIBRARY_CATEGORY, SG_XML_LIBRARY_NAME, SG_XML_LIBRARY_PATH, SG_XML_TOOL, SG_XML_TOOL_ATT_ID, SG_XML_TOOL_ATT_NAME, SUMMARY_ADD_STR, TLB_INFO_Author, TLB_INFO_Category, TLB_INFO_Description, and TLB_INFO_Name.
Referenced by Get_Summary(), and CSG_Tool_Library_Manager::Get_Summary().
|
virtual |
Definition at line 157 of file tool_library.cpp.
References Get_Tool().
|
virtual |
Definition at line 159 of file tool_library.cpp.
References CSG_String::Cmp(), Get_Count(), CSG_Tool::Get_ID(), CSG_Tool::Get_Name(), and Get_Tool().
|
virtual |
Definition at line 158 of file tool_library.cpp.
References Get_Tool().
|
virtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 149 of file tool_library.cpp.
References Get_Count(), CSG_Tool_Library_Interface::Get_Tool(), CSG_Tool::Get_Type(), and TOOL_TYPE_Base.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), Get_Menu(), Get_Summary(), Get_Tool(), and CSG_Tool_Library_Manager::Get_Tool().
|
inlinevirtual |
Reimplemented in CSG_Tool_Chains.
Definition at line 110 of file tool_library.h.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), and CSG_Tool_Library_Manager::Get_Library().
|
inline |
Definition at line 121 of file tool_library.h.
References TLB_INFO_Version.
|
inline |
Definition at line 112 of file tool_library.h.
References CSG_Tool_Library_Manager::Get_Count().
Referenced by CSG_Tool_Library_Manager::Add_Library().
|
friend |
Definition at line 106 of file tool_library.h.
|
protected |
Definition at line 159 of file tool_library.h.
Referenced by CSG_Tool_Library().
|
protected |
Definition at line 159 of file tool_library.h.
Referenced by CSG_Tool_Library().