Exemple #1
0
            string m_maximum;          // maximum value


            // construction/destruction
            public simple_entry(std.vector <string> names, string description, option_type type, string defdata, string minimum, string maximum)
                : base(names, type, description)
            {
                m_defdata = defdata;
                m_minimum = minimum;
                m_maximum = maximum;


                m_data = m_defdata;
            }
Exemple #2
0
            Action <string> m_value_changed_handler;  //std::function<void(const char *)>           m_value_changed_handler;


            // construction/destruction
            protected entry(std.vector <string> names, option_type type = option_type.STRING, string description = null)
            {
                m_names       = names;
                m_priority    = OPTION_PRIORITY_DEFAULT;
                m_type        = type;
                m_description = description;


                assert(m_names.empty() == (m_type == option_type.HEADER));
            }
Exemple #3
0
        //-------------------------------------------------
        //  add_entry
        //-------------------------------------------------
        void add_entry(std.vector <string> names, string description, option_type type, string default_value = "", string minimum = "", string maximum = "")
        {
            // create the entry
            entry new_entry = new simple_entry(
                names,
                description,
                type,
                default_value,
                minimum,
                maximum);

            // and add it
            add_entry(new_entry);
        }
Exemple #4
0
 protected entry(string name, option_type type = option_type.STRING, string description = null)
     : this(new std.vector <string>() { name }, type, description)
 {
 }