FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairTestOutputHandler.h
Go to the documentation of this file.
1
/********************************************************************************
2
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3
* *
4
* This software is distributed under the terms of the *
5
* GNU Lesser General Public Licence (LGPL) version 3, *
6
* copied verbatim in the file "LICENSE" *
7
********************************************************************************/
8
#ifndef FAIRTESTOUTPUTHANDLER_H_
9
#define FAIRTESTOUTPUTHANDLER_H_
10
#pragma once
11
12
#include <string>
13
#include <vector>
14
15
class
FairTestOutputHandler
16
{
17
public
:
18
FairTestOutputHandler
(
const
std::string& filename);
19
FairTestOutputHandler
();
20
~FairTestOutputHandler
();
21
22
std::string
GetCaptureLine
(
int
line);
23
int
GetNumberOfLines
();
24
25
void
SetFileName
(
const
std::string& filename);
26
27
private
:
28
void
ReadContentFromFile();
29
30
std::string fFileName;
31
std::vector<std::string> fFileContent;
32
std::vector<std::string>::iterator fFileContentIterator;
33
int
fNumberOfLines;
34
bool
fFileAlreadyRead;
35
};
36
37
#endif
FairTestOutputHandler
Definition:
FairTestOutputHandler.h:15
FairTestOutputHandler::GetNumberOfLines
int GetNumberOfLines()
Definition:
FairTestOutputHandler.cxx:38
FairTestOutputHandler::GetCaptureLine
std::string GetCaptureLine(int line)
Definition:
FairTestOutputHandler.cxx:61
FairTestOutputHandler::~FairTestOutputHandler
~FairTestOutputHandler()
Definition:
FairTestOutputHandler.cxx:28
FairTestOutputHandler::SetFileName
void SetFileName(const std::string &filename)
Definition:
FairTestOutputHandler.cxx:30
FairTestOutputHandler::FairTestOutputHandler
FairTestOutputHandler()
Definition:
FairTestOutputHandler.cxx:20
FairRoot
test
testlib
FairTestOutputHandler.h
Generated on Mon Mar 8 2021 12:14:07 for FairRoot by
1.8.5