From a7b6d58874c42f62fcd97708005d0969f51b7829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com> Date: Fri, 15 Mar 2019 21:08:20 +0100 Subject: [PATCH] Editing of documentation in FileName.h. --- src/TNL/FileName.h | 84 +++++++++++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 35 deletions(-) diff --git a/src/TNL/FileName.h b/src/TNL/FileName.h index 2c860770d4..dabcd2d53f 100644 --- a/src/TNL/FileName.h +++ b/src/TNL/FileName.h @@ -18,63 +18,77 @@ 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 ); - + 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 ); - + 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: - + String fileNameBase, extension, distributedSystemNodeId; - + int index, digitsCount; }; -- GitLab