Commit a7b6d588 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Editing of documentation in FileName.h.

parent ab81368e
Loading
Loading
Loading
Loading
+49 −35
Original line number Diff line number Diff line
@@ -18,16 +18,20 @@ String getFileExtension( const String fileName );

void removeFileExtension( String& file_name );

/// \brief Class for the construction of file names from multiple parts.
///
/// Merges base name, index number and extention to create the full name of a file.
/***
 * \brief Class for the construction of file names from multiple parts.
 *
 * Merges base name, index number and extension to create the full name of a file.
 */
class FileName
{
   public:

      /// \brief Basic constructor.
      ///
      /// Constructs an empty filename object.
      /***
       * \brief Basic constructor.
       *
       * Constructs an empty filename object.
       */
      FileName();

      FileName( const String& fileNameBase );
@@ -35,29 +39,37 @@ class FileName
      FileName( const String& fileNameBase, 
                const String& extension );

      /// \brief Sets the base name of given file.
      ///
      /// Sets \e fileNameBase as the base name of given file.
      /// @param fileNameBase String that specifies new name of file.
      /***
       * \brief Sets the base name of given file.
       *
       * Sets \e fileNameBase as the base name of given file.
       * @param fileNameBase String that specifies new name of file.
       */
      void setFileNameBase( const String& fileNameBase );

      /// \brief Sets the extension of given file.
      ///
      /// Sets \e extension as suffix of a file name.
      /// @param extension A String that specifies extension of file (without dot).
      /// Suffix of a file name. E.g. doc, xls, tnl.
      /***
       *  \brief Sets the extension of given file.
       *
       * Sets \e extension as suffix of a file name.
       * @param extension A String that specifies extension of file (without dot).
       * Suffix of a file name. E.g. doc, xls, tnl.
       */
      void setExtension( const String& extension );

      /// \brief Sets index for given file.
      ///
      /// Sets \e index after the base name of given file.
      /// @param index Integer - number of maximum 5(default) digits.
      /// (Number of digits can be changed with \ref setDigitsCount).
      /***
       * \brief Sets index for given file.
       *
       * Sets \e index after the base name of given file.
       * @param index Integer - number of maximum 5(default) digits.
       * (Number of digits can be changed with \ref setDigitsCount).
       */
      void setIndex( const int index );

      /// \brief Sets number of digits for index of given file.
      ///
      /// @param digitsCount Integer - number of digits.
      /***
       * \brief Sets number of digits for index of given file.
       *
       * @param digitsCount Integer - number of digits.
       */
      void setDigitsCount( const int digitsCount );

      void setDistributedSystemNodeId( int nodeId );
@@ -65,10 +77,12 @@ class FileName
      template< typename Coordinates >
      void setDistributedSystemNodeId( const Coordinates& nodeId );

      /// \brief Creates appropriate name for given file.
      ///
      /// Creates particular file name using \e fileNameBase, \e digitsCount,
      /// \e index and \e extension.
      /***
       * \brief Creates appropriate name for given file.
       *
       * Creates particular file name using \e fileNameBase, \e digitsCount,
       * \e index and \e extension.
       */
      String getFileName();

   protected: