X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fcommandline%2Fcmdlinehelpwriter.cpp;h=69448c4bd780d8ae8a8c3d1f44ae1769f0639602;hb=7a6907d2184cf7bf3ce09e83e9d902f9787a3eb0;hp=1241c667550539d71c5ea9c3302be89d1aebe8dd;hpb=9eb0581bed7c5147f8919ab19a7e2ed55e0e1514;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/commandline/cmdlinehelpwriter.cpp b/src/gromacs/commandline/cmdlinehelpwriter.cpp index 1241c66755..69448c4bd7 100644 --- a/src/gromacs/commandline/cmdlinehelpwriter.cpp +++ b/src/gromacs/commandline/cmdlinehelpwriter.cpp @@ -137,7 +137,7 @@ void DescriptionsFormatter::visitSubSection(const Options §ion) } /******************************************************************** - * OptionsFormatterInterface + * IOptionsFormatter */ /*! \brief @@ -145,10 +145,10 @@ void DescriptionsFormatter::visitSubSection(const Options §ion) * * \see OptionsFilter */ -class OptionsFormatterInterface +class IOptionsFormatter { public: - virtual ~OptionsFormatterInterface() {} + virtual ~IOptionsFormatter() {} //! Formats a single option option. virtual void formatOption(const OptionInfo &option) = 0; @@ -163,7 +163,7 @@ class OptionsFormatterInterface * * Together with code in CommandLineHelpWriter::writeHelp(), this class * implements the common logic for writing out the help. - * An object implementing the OptionsFormatterInterface must be provided to the + * An object implementing the IOptionsFormatter must be provided to the * constructor, and does the actual formatting that is specific to the output * format. */ @@ -198,14 +198,14 @@ class OptionsFilter : public OptionsVisitor //! Formats selected options using the formatter. void formatSelected(FilterType type, - OptionsFormatterInterface *formatter, + IOptionsFormatter *formatter, const Options &options); virtual void visitSubSection(const Options §ion); virtual void visitOption(const OptionInfo &option); private: - OptionsFormatterInterface *formatter_; + IOptionsFormatter *formatter_; FilterType filterType_; bool bShowHidden_; @@ -213,7 +213,7 @@ class OptionsFilter : public OptionsVisitor }; void OptionsFilter::formatSelected(FilterType type, - OptionsFormatterInterface *formatter, + IOptionsFormatter *formatter, const Options &options) { formatter_ = formatter; @@ -382,7 +382,7 @@ descriptionWithOptionDetails(const CommonFormatterData &common, /*! \brief * Formatter implementation for synopsis. */ -class SynopsisFormatter : public OptionsFormatterInterface +class SynopsisFormatter : public IOptionsFormatter { public: //! Creates a helper object for formatting the synopsis. @@ -473,7 +473,7 @@ void SynopsisFormatter::formatOption(const OptionInfo &option) /*! \brief * Formatter implementation for help export. */ -class OptionsListFormatter : public OptionsFormatterInterface +class OptionsListFormatter : public IOptionsFormatter { public: //! Creates a helper object for formatting options.