![]() |
COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
Classes that implement the XML protocol for use in COOLFluiD. More...
Classes | |
| class | Map |
| class | Protocol |
| class | SignalFrame |
| Manages a set of maps. More... | |
| class | SignalOptions |
| Abstracts the use of XML when adding options to a signal frame. More... | |
| class | XmlDoc |
| class | XmlNode |
Functions | |
| template<> | |
| Common_API void | to_value< bool > (XmlNode &node, bool &val) |
| template<> | |
| Common_API void | to_value< int > (XmlNode &node, int &val) |
| template<> | |
| Common_API void | to_value< Uint > (XmlNode &node, Uint &val) |
| template<> | |
| Common_API void | to_value< Real > (XmlNode &node, Real &val) |
| template<> | |
| Common_API void | to_value< std::string > (XmlNode &node, std::string &val) |
| template<> | |
| Common_API void | to_value< URI > (XmlNode &node, URI &val) |
| template<> | |
| Common_API void | to_value< UUCount > (XmlNode &node, UUCount &val) |
| template<> | |
| Common_API bool | to_value< bool > (XmlNode &node) |
| template<> | |
| Common_API int | to_value< int > (XmlNode &node) |
| template<> | |
| Common_API Uint | to_value< Uint > (XmlNode &node) |
| template<> | |
| Common_API Real | to_value< Real > (XmlNode &node) |
| template<> | |
| Common_API std::string | to_value< std::string > (XmlNode &node) |
| template<> | |
| Common_API URI | to_value< URI > (XmlNode &node) |
| template<> | |
| Common_API UUCount | to_value< UUCount > (XmlNode &node) |
| template<typename T > | |
| void | to_value (XmlNode &node, T &val) |
| converts the value inside the xml node to the type More... | |
| template<typename T > | |
| T | to_value (XmlNode &node) |
| boost::shared_ptr< XmlDoc > | parse_string (const std::string &str) |
| boost::shared_ptr< XmlDoc > | parse_cstring (const char *str, std::size_t length) |
| boost::shared_ptr< XmlDoc > | parse_file (const URI &file) |
| void | to_file (const XmlNode &node, const URI &file) |
| void | to_string (const XmlNode &node, std::string &str) |
| TEMPLATE_EXPLICIT_INSTANTIATION (bool) | |
| explicit instantiation to avoid missing symbols on certain compilers More... | |
| TEMPLATE_EXPLICIT_INSTANTIATION (int) | |
| TEMPLATE_EXPLICIT_INSTANTIATION (std::string) | |
| TEMPLATE_EXPLICIT_INSTANTIATION (cf3::Uint) | |
| TEMPLATE_EXPLICIT_INSTANTIATION (cf3::Real) | |
| TEMPLATE_EXPLICIT_INSTANTIATION (cf3::common::URI) | |
| TEMPLATE_EXPLICIT_INSTANTIATION (cf3::common::UUCount) | |
| XmlNode | add_multi_array_in (Map &map, const std::string &name, const boost::multi_array< Real, 2 > &array, const std::string &delimiter=";", const std::vector< std::string > &labels=std::vector< std::string >()) |
Adds a multi array in the provided Map. More... | |
| void | get_multi_array (const Map &map, const std::string &name, boost::multi_array< Real, 2 > &array, std::vector< std::string > &labels) |
| boost::shared_ptr< Option > | make_option (const std::string &name, XmlNode &node) |
| boost::shared_ptr< Option > | make_option_array (const std::string &name, const XmlNode &node) |
| void | set_option_attributes (Option &option, const std::string &pretty_name, const std::string &descr, const XmlNode &node) |
| void | add_opt_to_xml (Map &opt_map, boost::shared_ptr< Option > opt, bool is_array) |
Classes that implement the XML protocol for use in COOLFluiD.
| XmlNode add_multi_array_in | ( | Map & | map, |
| const std::string & | name, | ||
| const boost::multi_array< Real, 2 > & | array, | ||
| const std::string & | delimiter, | ||
| const std::vector< std::string > & | labels | ||
| ) |
Adds a multi array in the provided Map.
Definition at line 33 of file MultiArray.cpp.
| void cf3::common::XML::add_opt_to_xml | ( | Map & | opt_map, |
| boost::shared_ptr< Option > | opt, | ||
| bool | is_array | ||
| ) |
Adds an option to an XML map.
| opt_map | Map the option should be added to |
| opt | Option to add |
| is_array | If true, the option is treated as an array. |
Definition at line 190 of file SignalOptions.cpp.
| void get_multi_array | ( | const Map & | map, |
| const std::string & | name, | ||
| boost::multi_array< Real, 2 > & | array, | ||
| std::vector< std::string > & | labels | ||
| ) |
Definition at line 86 of file MultiArray.cpp.
| boost::shared_ptr<Option> cf3::common::XML::make_option | ( | const std::string & | name, |
| XmlNode & | node | ||
| ) |
Creates an #OptionT option
| name | Option name |
| node | The value node. |
Definition at line 44 of file SignalOptions.cpp.
| boost::shared_ptr< Option > cf3::common::XML::make_option_array | ( | const std::string & | name, |
| const XmlNode & | node | ||
| ) |
Creates an #OptionArray option
| name | Option name |
| node | The value node. |
Definition at line 56 of file SignalOptions.cpp.
| boost::shared_ptr< XmlDoc > parse_cstring | ( | const char * | str, |
| std::size_t | length = 0 |
||
| ) |
Parses a XML file
| fpath | Path to file with xml contents |
| FileSystemError | If the file cannot be read. |
Definition at line 63 of file FileOperations.cpp.
| boost::shared_ptr< XmlDoc > parse_string | ( | const std::string & | str | ) |
Parses a XML string
| str | String with the XML contents |
Definition at line 25 of file FileOperations.cpp.
| void cf3::common::XML::set_option_attributes | ( | Option & | option, |
| const std::string & | pretty_name, | ||
| const std::string & | descr, | ||
| const XmlNode & | node | ||
| ) |
Set description, pretty name and restricted list, if any
| option | THe option for which to set the attributes |
| pretty_name | The option pretty name |
| descr | Option description |
| node | The value node. If it has a sibling node, this node is taken as the restricted values list. |
Definition at line 77 of file SignalOptions.cpp.
| TEMPLATE_EXPLICIT_INSTANTIATION | ( | bool | ) |
explicit instantiation to avoid missing symbols on certain compilers
| TEMPLATE_EXPLICIT_INSTANTIATION | ( | int | ) |
| TEMPLATE_EXPLICIT_INSTANTIATION | ( | std::string | ) |
| TEMPLATE_EXPLICIT_INSTANTIATION | ( | cf3::Uint | ) |
| TEMPLATE_EXPLICIT_INSTANTIATION | ( | cf3::Real | ) |
| TEMPLATE_EXPLICIT_INSTANTIATION | ( | cf3::common::URI | ) |
| cf3::common::XML::TEMPLATE_EXPLICIT_INSTANTIATION | ( | cf3::common::UUCount | ) |
Writes the provided XML node to a file.
| node | The node to write. |
| fpath | The file path to which the node has to be written. |
Definition at line 103 of file FileOperations.cpp.
| void to_string | ( | const XmlNode & | node, |
| std::string & | str | ||
| ) |
Writes the provided XML node to a string.
| str | The string to which the node has to be written. |
| node | The node to write. |
Definition at line 114 of file FileOperations.cpp.
| void cf3::common::XML::to_value | ( | XmlNode & | node, |
| T & | val | ||
| ) |
converts the value inside the xml node to the type
| T cf3::common::XML::to_value | ( | XmlNode & | node | ) |
| Common_API void cf3::common::XML::to_value< bool > | ( | XmlNode & | node, |
| bool & | val | ||
| ) |
Definition at line 24 of file CastingFunctions.cpp.
| Common_API bool cf3::common::XML::to_value< bool > | ( | XmlNode & | node | ) |
Definition at line 75 of file CastingFunctions.cpp.
| Common_API void cf3::common::XML::to_value< int > | ( | XmlNode & | node, |
| int & | val | ||
| ) |
Definition at line 31 of file CastingFunctions.cpp.
| Common_API int cf3::common::XML::to_value< int > | ( | XmlNode & | node | ) |
Definition at line 81 of file CastingFunctions.cpp.
| Common_API void cf3::common::XML::to_value< Real > | ( | XmlNode & | node, |
| Real & | val | ||
| ) |
Definition at line 45 of file CastingFunctions.cpp.
| Common_API Real cf3::common::XML::to_value< Real > | ( | XmlNode & | node | ) |
Definition at line 93 of file CastingFunctions.cpp.
| Common_API void cf3::common::XML::to_value< std::string > | ( | XmlNode & | node, |
| std::string & | val | ||
| ) |
Definition at line 52 of file CastingFunctions.cpp.
| Common_API std::string cf3::common::XML::to_value< std::string > | ( | XmlNode & | node | ) |
Definition at line 99 of file CastingFunctions.cpp.
| Common_API void cf3::common::XML::to_value< Uint > | ( | XmlNode & | node, |
| Uint & | val | ||
| ) |
Definition at line 38 of file CastingFunctions.cpp.
| Common_API Uint cf3::common::XML::to_value< Uint > | ( | XmlNode & | node | ) |
Definition at line 87 of file CastingFunctions.cpp.
| Common_API void cf3::common::XML::to_value< URI > | ( | XmlNode & | node, |
| URI & | val | ||
| ) |
Definition at line 59 of file CastingFunctions.cpp.
| Common_API URI cf3::common::XML::to_value< URI > | ( | XmlNode & | node | ) |
Definition at line 105 of file CastingFunctions.cpp.
| Common_API void cf3::common::XML::to_value< UUCount > | ( | XmlNode & | node, |
| UUCount & | val | ||
| ) |
Definition at line 66 of file CastingFunctions.cpp.
| Common_API UUCount cf3::common::XML::to_value< UUCount > | ( | XmlNode & | node | ) |
Definition at line 111 of file CastingFunctions.cpp.
1.8.9.1
|
Send comments to: COOLFluiD Web Admin |