ATLAS Offline Software
Loading...
Searching...
No Matches
label.h File Reference
#include <cstdio>
#include <iostream>
Include dependency graph for label.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string label (const std::string &format, int i)
std::string label (const std::string &format, unsigned i)
std::string label (const std::string &format, int i, int j)
std::string label (const std::string &format, double d)
std::string label (const std::string &format, double d, double e)
std::string label (const std::string &format, double d, double e, double f, int i)
std::string label (const std::string &format, double d, double e, int i)
std::string label (const std::string &format, const std::string &s)

Detailed Description

Author
mark sutton
Date
Sun 26 Aug 2012 21:32:27 BST

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Definition in file label.h.

Function Documentation

◆ label() [1/8]

std::string label ( const std::string & format,
const std::string & s )
inline

Definition at line 67 of file label.h.

67 {
68 char c[256];
69 std::sprintf( c, format.c_str(), s.c_str());
70 return c;
71}

◆ label() [2/8]

std::string label ( const std::string & format,
double d )
inline

Definition at line 37 of file label.h.

37 {
38 char c[256];
39 std::sprintf( c, format.c_str(), d );
40 return c;
41}

◆ label() [3/8]

std::string label ( const std::string & format,
double d,
double e )
inline

Definition at line 43 of file label.h.

43 {
44 char c[256];
45 std::sprintf( c, format.c_str(), d, e );
46 return c;
47}

◆ label() [4/8]

std::string label ( const std::string & format,
double d,
double e,
double f,
int i )
inline

Definition at line 49 of file label.h.

49 {
50 char c[256];
51 std::sprintf( c, format.c_str(), d, e, f, i );
52
53 std::cout << "\tf: " << f << " :: " << c << std::endl;
54
55 return c;
56}

◆ label() [5/8]

std::string label ( const std::string & format,
double d,
double e,
int i )
inline

Definition at line 58 of file label.h.

58 {
59 char c[256];
60 std::sprintf( c, format.c_str(), d, e, i );
61 return c;
62}

◆ label() [6/8]

std::string label ( const std::string & format,
int i )
inline

Definition at line 19 of file label.h.

19 {
20 char c[256];
21 std::sprintf( c, format.c_str(), i );
22 return c;
23}

◆ label() [7/8]

std::string label ( const std::string & format,
int i,
int j )
inline

Definition at line 31 of file label.h.

31 {
32 char c[256];
33 std::sprintf( c, format.c_str(), i, j );
34 return c;
35}

◆ label() [8/8]

std::string label ( const std::string & format,
unsigned i )
inline

Definition at line 25 of file label.h.

25 {
26 char c[256];
27 std::sprintf( c, format.c_str(), i );
28 return c;
29}