Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
a7b6d588
There was an error fetching the commit references. Please try again later.
Commit
a7b6d588
authored
6 years ago
by
Tomáš Oberhuber
Committed by
Tomáš Oberhuber
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Editing of documentation in FileName.h.
parent
ab81368e
No related branches found
No related tags found
1 merge request
!29
Revision
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/FileName.h
+49
-35
49 additions, 35 deletions
src/TNL/FileName.h
with
49 additions
and
35 deletions
src/TNL/FileName.h
+
49
−
35
View file @
a7b6d588
...
@@ -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
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment