\membersection{wxSplitterEvent::SetSashPosition}\label{wxsplittereventsetsashposition}
-\func{void}{SetSashPosition}{\param{int}{pos}}
+\func{void}{SetSashPosition}{\param{int}{ pos}}
In the case of wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events,
sets the the new sash position. In the case of
// gets the value of Nth parameter (as string only for now)
wxString GetParam(size_t n = 0u) const;
+ // Resets switches and options
+ void Reset();
+
private:
// common part of all ctors
void Init();
void SetDateVal(const wxDateTime val)
{ Check(wxCMD_LINE_VAL_DATE); m_dateVal = val; m_hasVal = TRUE; }
- void SetHasValue() { m_hasVal = TRUE; }
+ void SetHasValue(bool hasValue = TRUE) { m_hasVal = hasValue; }
bool HasValue() const { return m_hasVal; }
public:
return m_data->m_parameters[n];
}
+// Resets switches and options
+void wxCmdLineParser::Reset()
+{
+ unsigned int i;
+ for (i = 0; i < m_data->m_options.Count(); i++)
+ {
+ wxCmdLineOption& opt = m_data->m_options[(size_t)i];
+ opt.SetHasValue(FALSE);
+ }
+}
+
+
// ----------------------------------------------------------------------------
// the real work is done here
// ----------------------------------------------------------------------------
size_t countParam = m_data->m_paramDesc.GetCount();
+ Reset();
+
// parse everything
wxString arg;
size_t count = m_data->m_arguments.GetCount();