Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
LUPI Namespace Reference

Namespaces

namespace  FileInfo
namespace  Misc

Classes

class  FormatVersion
class  Exception
class  StatusMessageReporting
class  ArgumentParser
class  ArgumentBase
class  OptionBoolean
class  OptionTrue
class  OptionFalse
class  OptionCounter
class  OptionStore
class  OptionAppend
class  Positional
class  DeltaTime
class  Timer
class  DataBuffer

Enumerations

enum class  ArgumentType {
  True , False , Count , Store ,
  Append , Positional
}

Functions

void deprecatedFunction (std::string const &a_functionName, std::string const &a_replacementName, std::string const &a_asOf)
void deprecatedFunction (LUPI_maybeUnused std::string const &a_functionName, LUPI_maybeUnused std::string const &a_replacementName, LUPI_maybeUnused std::string const &a_asOf)

Enumeration Type Documentation

◆ ArgumentType

enum class LUPI::ArgumentType
strong
Enumerator
True 
False 
Count 
Store 
Append 
Positional 

Definition at line 128 of file LUPI.hpp.

Function Documentation

◆ deprecatedFunction() [1/2]

void LUPI::deprecatedFunction ( LUPI_maybeUnused std::string const & a_functionName,
LUPI_maybeUnused std::string const & a_replacementName,
LUPI_maybeUnused std::string const & a_asOf )

If the build of GIDI+ defines the MACRO LUPI_printDeprecatedInformation, then all deprecated functions will print a message that they are deprecated.

Parameters
a_functionName[in] The name of the function (or method) that is deprecated.
a_replacementName[in] The name of the function that replaces the deprecated function.
a_asOf[in] Specifies the version of GIDI+ for which the function will no longer be available.

Definition at line 32 of file LUPI_misc.cc.

32 {
33
34#ifdef LUPI_printDeprecatedInformation
35 std::cerr << "The function '" << a_functionName << "' is decreated";
36 if( a_asOf != "" ) std::cerr << " and will no longer be available starting with GIDI+ '" << a_asOf << "'";
37 std::cerr << ".";
38 if( a_replacementName != "" ) std::cerr << " Please use '" << a_replacementName << "' instead.";
39 std::cerr << std::endl;
40#endif
41}

◆ deprecatedFunction() [2/2]