CbmRoot
Loading...
Searching...
No Matches
CbmFormatDecHexPrintout.h
Go to the documentation of this file.
1/* Copyright (C) 2019 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
5// -----------------------------------------------------------------------------
6// ----- -----
7// ----- CbmFormatDecHexPrintout -----
8// ----- Created 11.09.2019 by P.-A. Loizeau -----
9// ----- -----
10// -----------------------------------------------------------------------------
11
12#ifndef CbmFormatDecHexPrintout_H
13#define CbmFormatDecHexPrintout_H
14
15#include <cstdint>
16#include <iomanip>
17#include <iostream>
18#include <sstream>
19
30std::string FormatDecPrintout(uint64_t ulVal, char cFill = 0, uint uWidth = 0);
31
42std::string FormatHexPrintout(uint64_t ulVal, char cFill = 0, uint uWidth = 0, bool bUppercase = false);
43
44#endif
std::string FormatDecPrintout(uint64_t ulVal, char cFill=0, uint uWidth=0)
std::string FormatHexPrintout(uint64_t ulVal, char cFill=0, uint uWidth=0, bool bUppercase=false)