From f7e026d82adcfa95655c3f8ec30cee33dabfd728 Mon Sep 17 00:00:00 2001
From: Nina Dzugasova <dzugasova.nina@gmail.com>
Date: Fri, 9 Nov 2018 15:12:37 +0100
Subject: [PATCH] Started documentation of File.

---
 src/TNL/File.h  | 15 ++++++++++++---
 src/TNL/Timer.h |  6 +++---
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/TNL/File.h b/src/TNL/File.h
index 7a8a024dbf..8ccfe90b1b 100644
--- a/src/TNL/File.h
+++ b/src/TNL/File.h
@@ -36,9 +36,8 @@ enum class IOMode
  */
 const size_t FileGPUvsCPUTransferBufferSize = 5 * 2<<20;
 
-/*
- * This file is aimed mainly for the binary data. It supports transparent compression.
- */
+
+/// Class file is aimed mainly for the binary data. It supports transparent compression.
 class File
 {
    IOMode mode;
@@ -55,10 +54,19 @@ class File
 
    public:
 
+   /// Basic constructor.
    File();
 
+   /// Destructor.
    ~File();
 
+   /////
+   /// \brief Opens given file. 
+   ///
+   /// Opens file with given \e fileName and returns true/false based on the success in opening the file.
+   /// \param fileName String which indicates name of the file user wants to open.
+   /// \param mode Indicates what user needs to do with opened file.
+   /// Modes to choose: IOMode::read or IOMode::write.
    bool open( const String& fileName,
               const IOMode mode );
 
@@ -92,6 +100,7 @@ class File
    template< typename Type, typename Device = Devices::Host >
    bool write( const Type* buffer );
 
+   /// \brief Closes given file and returns true/false based on the success in closing the file.
    bool close();
 
 protected:
diff --git a/src/TNL/Timer.h b/src/TNL/Timer.h
index 13567a438d..a0bd36ae8b 100644
--- a/src/TNL/Timer.h
+++ b/src/TNL/Timer.h
@@ -66,10 +66,10 @@ class Timer
  
    protected:
 
-      /// Function for reading the real time from timer.
+      /// Function for reading the real time.
       double readRealTime() const;
 
-      /// \brief Function for reading the CPU time from timer.
+      /// \brief Function for reading the CPU time.
       ///
       /// CPU time is the time that measures how long it takes processor
       /// to complete all computations.
@@ -84,7 +84,7 @@ class Timer
  
    unsigned long long int initialCPUCycles, totalCPUCycles;
 
-   /// \brief Saves information about state of the timer. 
+   /// \brief Saves information about state of the timer.
    ///
    /// Knows whether the timer is currently stopped or not.
    bool stopState;
-- 
GitLab