SAGA API  v9.6
tool_chain.cpp File Reference
#include "saga_api.h"
#include "tool_chain.h"

Go to the source code of this file.

Macros

#define GET_XML_CONTENT(XML, ID, DEFAULT, TRANSLATE)   (!XML(ID) ? CSG_String(DEFAULT) : !TRANSLATE ? XML[ID].Get_Content() : CSG_String(SG_Translate(XML[ID].Get_Content())))
 
#define IS_TRUE_STRING(String)   (!String.CmpNoCase("true") || !String.CmpNoCase("1"))
 
#define IS_TRUE_PROPERTY(Item, Property)   (Item.Cmp_Property(Property, "true", true) || Item.Cmp_Property(Property, "1"))
 
#define Get_List_Count(p)   (p->asGridList() ? p->asGridList()->Get_Grid_Count() : p->asList() ? p->asList()->Get_Item_Count() : 0)
 
#define Get_List_Item(p, i)   (p->asGridList() ? p->asGridList()->Get_Grid (i) : p->asList() ? p->asList()->Get_Item (i) : NULL)
 

Macro Definition Documentation

◆ Get_List_Count

#define Get_List_Count (   p)    (p->asGridList() ? p->asGridList()->Get_Grid_Count() : p->asList() ? p->asList()->Get_Item_Count() : 0)

Definition at line 68 of file tool_chain.cpp.

◆ Get_List_Item

#define Get_List_Item (   p,
 
)    (p->asGridList() ? p->asGridList()->Get_Grid (i) : p->asList() ? p->asList()->Get_Item (i) : NULL)

Definition at line 69 of file tool_chain.cpp.

◆ GET_XML_CONTENT

#define GET_XML_CONTENT (   XML,
  ID,
  DEFAULT,
  TRANSLATE 
)    (!XML(ID) ? CSG_String(DEFAULT) : !TRANSLATE ? XML[ID].Get_Content() : CSG_String(SG_Translate(XML[ID].Get_Content())))

Definition at line 63 of file tool_chain.cpp.

◆ IS_TRUE_PROPERTY

#define IS_TRUE_PROPERTY (   Item,
  Property 
)    (Item.Cmp_Property(Property, "true", true) || Item.Cmp_Property(Property, "1"))

Definition at line 66 of file tool_chain.cpp.

◆ IS_TRUE_STRING

#define IS_TRUE_STRING (   String)    (!String.CmpNoCase("true") || !String.CmpNoCase("1"))

Definition at line 65 of file tool_chain.cpp.