Skip to content
Snippets Groups Projects
Commit a7b6d588 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Editing of documentation in FileName.h.

parent ab81368e
No related branches found
No related tags found
1 merge request!29Revision
...@@ -18,63 +18,77 @@ String getFileExtension( const String fileName ); ...@@ -18,63 +18,77 @@ String getFileExtension( const String fileName );
void removeFileExtension( String& file_name ); void removeFileExtension( String& file_name );
/// \brief Class for the construction of file names from multiple parts. /***
/// * \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. *
* Merges base name, index number and extension to create the full name of a file.
*/
class FileName class FileName
{ {
public: public:
/// \brief Basic constructor. /***
/// * \brief Basic constructor.
/// Constructs an empty filename object. *
* Constructs an empty filename object.
*/
FileName(); FileName();
FileName( const String& fileNameBase ); FileName( const String& fileNameBase );
FileName( const String& fileNameBase, FileName( const String& fileNameBase,
const String& extension ); const String& extension );
/// \brief Sets the base name of given 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. * Sets \e fileNameBase as the base name of given file.
* @param fileNameBase String that specifies new name of file.
*/
void setFileNameBase( const String& fileNameBase ); void setFileNameBase( const String& fileNameBase );
/// \brief Sets the extension of given file. /***
/// * \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). * Sets \e extension as suffix of a file name.
/// Suffix of a file name. E.g. doc, xls, tnl. * @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 ); void setExtension( const String& extension );
/// \brief Sets index for given file. /***
/// * \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. * Sets \e index after the base name of given file.
/// (Number of digits can be changed with \ref setDigitsCount). * @param index Integer - number of maximum 5(default) digits.
* (Number of digits can be changed with \ref setDigitsCount).
*/
void setIndex( const int index ); void setIndex( const int index );
/// \brief Sets number of digits for index of given file. /***
/// * \brief Sets number of digits for index of given file.
/// @param digitsCount Integer - number of digits. *
* @param digitsCount Integer - number of digits.
*/
void setDigitsCount( const int digitsCount ); void setDigitsCount( const int digitsCount );
void setDistributedSystemNodeId( int nodeId ); void setDistributedSystemNodeId( int nodeId );
template< typename Coordinates > template< typename Coordinates >
void setDistributedSystemNodeId( const Coordinates& nodeId ); void setDistributedSystemNodeId( const Coordinates& nodeId );
/// \brief Creates appropriate name for given file. /***
/// * \brief Creates appropriate name for given file.
/// Creates particular file name using \e fileNameBase, \e digitsCount, *
/// \e index and \e extension. * Creates particular file name using \e fileNameBase, \e digitsCount,
* \e index and \e extension.
*/
String getFileName(); String getFileName();
protected: protected:
String fileNameBase, extension, distributedSystemNodeId; String fileNameBase, extension, distributedSystemNodeId;
int index, digitsCount; int index, digitsCount;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment