CMS 3D CMS Logo

Public Member Functions | Private Attributes

NameScheme Class Reference

#include <NameScheme.h>

List of all members.

Public Member Functions

TString name (const int)
TString name (const char *, const int, const int)
TString name (ofstream &, const char *, const int, const int)
TString name (ofstream &, const char *)
TString name (ofstream &, const char *, const int)
TString name (const char *)
TString name (const char *, const int)
 NameScheme ()
 NameScheme (const char *)
 NameScheme (const char *, const char *)
TString setLink (const char *)
 ~NameScheme ()

Private Attributes

const char * link_
const char * name_

Detailed Description

Definition at line 11 of file NameScheme.h.


Constructor & Destructor Documentation

NameScheme::NameScheme ( ) [explicit]

Definition at line 3 of file NameScheme.cc.

                      :
  name_("Default"),
  link_("_")
{
}
NameScheme::NameScheme ( const char *  name) [explicit]

Definition at line 9 of file NameScheme.cc.

                                      :
  name_(name),
  link_("_")
{
}
NameScheme::NameScheme ( const char *  name,
const char *  link 
) [explicit]

Definition at line 15 of file NameScheme.cc.

                                                        :
  name_(name),
  link_(link)
{
}
NameScheme::~NameScheme ( )

Definition at line 21 of file NameScheme.cc.

{

}

Member Function Documentation

TString NameScheme::name ( const int  i)

Definition at line 27 of file NameScheme.cc.

References i, link_, and name_.

Referenced by Comparison< Ref, RefQualifier, Rec, RecQualifier, Alg >::book(), and name().

{
  TString namestr( name_ );
  namestr += link_;
  namestr += i;
  return namestr;
}
TString NameScheme::name ( const char *  name)

Definition at line 36 of file NameScheme.cc.

References link_, name(), and name_.

{
  TString namestr( name_ );
  namestr += link_;
  namestr += name;
  return namestr;
}
TString NameScheme::name ( ofstream &  file,
const char *  name,
const int  i,
const int  j 
)

Definition at line 93 of file NameScheme.cc.

References i, j, link_, name(), and name_.

{
  TString namestr( name_ );
  namestr += link_;
  namestr += name;
  namestr += "_";
  namestr += i;
  namestr += "_";
  namestr += j;

  file << namestr << "\n";
  return namestr;
}
TString NameScheme::name ( ofstream &  file,
const char *  name,
const int  i 
)

Definition at line 80 of file NameScheme.cc.

References i, link_, name(), and name_.

{
  TString namestr( name_ );
  namestr += link_;
  namestr += name;
  namestr += "_";
  namestr += i;

  file << namestr << "\n";
  return namestr;
}
TString NameScheme::name ( ofstream &  file,
const char *  name 
)

Definition at line 69 of file NameScheme.cc.

References link_, name(), and name_.

{
  TString namestr( name_ );
  namestr += link_;
  namestr += name;

  file << namestr << "\n";
  return namestr;
}
TString NameScheme::name ( const char *  name,
const int  i,
const int  j 
)

Definition at line 56 of file NameScheme.cc.

References i, j, link_, name(), and name_.

{
  TString namestr( name_ );
  namestr += link_;
  namestr += name;
  namestr += "_";
  namestr += i;
  namestr += "_";
  namestr += j;
  return namestr;
}
TString NameScheme::name ( const char *  name,
const int  i 
)

Definition at line 45 of file NameScheme.cc.

References i, link_, name(), and name_.

{
  TString namestr( name_ );
  namestr += link_;
  namestr += name;
  namestr += "_";
  namestr += i;
  return namestr;
}
TString NameScheme::setLink ( const char *  )

Member Data Documentation

const char* NameScheme::link_ [private]

Definition at line 29 of file NameScheme.h.

Referenced by name().

const char* NameScheme::name_ [private]

Definition at line 28 of file NameScheme.h.

Referenced by name().