17#ifndef MS_XML_PARAMETERS_HPP 
   18#define MS_XML_PARAMETERS_HPP 
   24namespace msparser_internal {
 
   25    class ms_xml_xmlloader;
 
   30namespace matrix_science {
 
   71        std::string validateShallow(
const ms_xml_schema *pSchemaFileObj) 
const;
 
   74        std::string validateDeep(
const ms_xml_schema *pSchemaFileObj) 
const;
 
   78        bool haveName() 
const;
 
   81        std::string getName() 
const;
 
   84        void setName(
const char* value);
 
   94        bool haveDescription() 
const;
 
   97        std::string getDescription() 
const;
 
  100        void setDescription(
const char* value);
 
  103        void dropDescription();
 
  110        std::string getValue() 
const;
 
  113        void setValue(
const char* value);
 
  119        virtual bool saveToXML_ParameterByNumber(msparser_internal::ms_XMLHelper &helper, msparser_internal::ms_XMLElement &rootEl) 
const = 0;
 
  124        std::string _description;
 
  125        bool _description_set;
 
  152        void defaultValues();
 
  158        std::string validateShallow(
const ms_xml_schema *pSchemaFileObj) 
const;
 
  161        std::string validateDeep(
const ms_xml_schema *pSchemaFileObj) 
const;
 
  180        virtual bool saveToXML_Parameters(msparser_internal::ms_XMLHelper &helper, msparser_internal::ms_XMLElement &rootEl) 
const = 0;
 
Parameter name and value pair.
Definition: ms_xml_parameters.hpp:46
virtual std::string getValueSchemaType() const =0
Obtain a symbolic name for the value attribute schema type.
virtual std::string getDescriptionSchemaType() const =0
Obtain a symbolic name for the description attribute schema type.
virtual std::string getNameSchemaType() const =0
Obtain a symbolic name for the name attribute schema type.
virtual std::string getSchemaType() const =0
Returns name of the schema type that can be used to validate this element.
A class that represents a base parametersType.
Definition: ms_xml_parameters.hpp:140
virtual int getNumberOfParameters() const =0
Returns the number of parameters held.
virtual bool deleteParameterByName(const char *name)=0
Remove a parameter from the list in memory by its unique name.
virtual std::string getParameterSchemaType() const =0
Obtain a symbolic name for the parameter element schema type.
virtual void clearParameters()=0
Deletes all parameters from the list.
virtual bool deleteParameterByNumber(const int idx)=0
Remove a parameter from the list in memory by its index.
virtual std::string getSchemaType() const =0
Returns name of the schema type that can be used to validate this element.