28 #ifndef ICL_CORE_CONFIG_ATTRIBUTE_TREE_H_INCLUDED 29 #define ICL_CORE_CONFIG_ATTRIBUTE_TREE_H_INCLUDED 37 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 55 init(filename.c_str());
140 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 213 void init(
const char *filename);
237 void printSubTree(std::ostream& out,
int change_style_depth,
char *upper_description);
238 void printXmlSubTree(std::ostream& out,
const std::string& upper_description);
240 AttributeTree *search(
const char *description,
const char *attribute);
242 void unmarkChanges();
254 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 267 ICL_CORE_GCC_DEPRECATE_STYLE;
367 AttributeTree *setAttribute(
const char *description,
const char *attribute);
372 AttributeTree *setAttribute(
const char *description,
const char *subdescription,
const char *attribute);
385 return m_this_attribute;
392 char *getAttribute(
const char *description,
const char *default_attribute = 0,
398 char *getOrSetDefault(
const char *description,
const char *default_attribute);
403 int save(
const char *filename,
int change_style_depth = 3,
bool unmark_changes =
true);
422 int load(
const char *filename,
bool unmark_changes =
true,
bool process_include =
true,
423 bool load_comments =
false,
bool preserve_order =
false);
427 int get(std::istream &in,
bool process_include =
true,
bool load_comments =
false,
441 char *newSubNodeDescription(
const char *base_description =
"");
451 void printSubTree(std::ostream &out,
int change_style_depth = 3,
const char *upper_description = 0);
457 return m_this_description;
464 return m_this_attribute;
469 void setDescription(
const char *description);
473 void setAttribute(
const char *attribute);
477 void setComment(
const char *comment);
496 return m_subtree_list->m_sub_tree;
511 return m_subtree_list->next(subtree);
534 return addSubTree(subtree, NULL);
562 AttributeTree *search(
const char *description,
const char *attribute);
567 bool isAttribute(
const char *description,
const char *attribute = 0);
576 void unmarkChanges();
601 const char *comment();
607 return commentAttributeTree() != NULL;
616 bool hasMultilineComment();
620 bool isMultilineComment();
633 appendString(m_this_attribute, attribute, separator);
643 appendString(m_this_description, description, separator);
652 m_subtree_list = m_subtree_list->revertOrder();
671 const char *ret = root()->getSpecialAttribute(m_file_path_str);
695 const char *ret = root()->getSpecialAttribute(m_file_name_str);
704 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 720 const char *attribute)
728 const char *subdescription,
729 const char *attribute)
741 const char *default_attribute = 0,
749 const char *default_attribute)
756 bool unmark_changes =
true)
763 bool process_include =
true,
764 bool load_comments =
false,
765 bool preserve_order =
false)
772 bool load_comments =
false,
791 int change_style_depth = 3,
792 const char *upper_description = 0)
966 void split(
char *&description,
char *&sub_description);
967 void appendString(
char * &dest,
const char *src,
const char *separator);
974 char *getSpecialAttribute(
const char *description,
AttributeTree **subtree = NULL);
FilePath(const icl_core::String &filename)
void init(const char *filename)
#define ICL_CORE_VC_DEPRECATE_STYLE
std::vector< String > split(const String &str, const String &delimiter)
static icl_core::String replaceEnvironment(const icl_core::String &filename)
#define ICL_CORE_CONFIG_IMPORT_EXPORT
Contains macros to deprecate classes, types, functions and variables.
void appendDescription(const char *description, const char *separator="")
const char * getDescription() const
icl_core::String::size_type m_file_name_extension_split
static const char * m_file_name_str
char * m_this_description
icl_core::String currentDir() const
AttributeTree * nextSubTree(AttributeTree *subtree)
static icl_core::String normalizePath(const icl_core::String &filename)
AttributeTree * addSubTree(AttributeTree *subtree)
int unlink(const char *filename)
Contains import/export definitions for the Win32 plattform.
AttributeTree * addNextTree(AttributeTree *nexttree)
icl_core::String::size_type m_file_path_name_split
bool isRelativePath() const
AttributeTree * m_sub_tree
AttributeTree * parentTree()
static const char * m_file_path_str
static icl_core::String getEnvironment(const icl_core::String &var_name)
Contains Interface base classes and base types.
FilePath(const char *filename="")
icl_core::String absoluteName() const
const char * attribute() const
icl_core::String path() const
void appendAttribute(const char *attribute, const char *separator="")
SubTreeList * m_subtree_list
AttributeTree * firstSubTree()
icl_core::String name() const
bool Get(const icl_core::String &key, typename icl_core::ConvertToRef< T >::ToRef value) ICL_CORE_GCC_DEPRECATE_STYLE
static icl_core::String exchangeSeparators(const icl_core::String &filename)
icl_core::String extension() const
icl_core::String absolutePath(const icl_core::String &filename) const
const char * getFilePath()
#define ICL_CORE_GCC_DEPRECATE_STYLE