Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
LUPI.hpp File Reference
#include <sys/stat.h>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <stdexcept>
#include <iostream>
#include <time.h>
#include <sys/time.h>
#include <LUPI_defines.hpp>
#include <statusMessageReporting.h>

Go to the source code of this file.

Classes

class  LUPI::FormatVersion
class  LUPI::Exception
class  LUPI::StatusMessageReporting
class  LUPI::ArgumentParser
class  LUPI::ArgumentBase
class  LUPI::OptionBoolean
class  LUPI::OptionTrue
class  LUPI::OptionFalse
class  LUPI::OptionCounter
class  LUPI::OptionStore
class  LUPI::OptionAppend
class  LUPI::Positional
class  LUPI::DeltaTime
class  LUPI::Timer
class  LUPI::FileInfo::FileStat

Namespaces

namespace  LUPI
namespace  LUPI::FileInfo
namespace  LUPI::Misc

Macros

#define LUPI_XML_verionEncoding   "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
#define LUPI_PATH_MAX   ( 4 * 4096 )
#define LUPI_FILE_SEPARATOR   "/"
#define GNDS_formatVersion_1_10Chars   "1.10"
#define GNDS_formatVersion_2_0Chars   "2.0"
#define GNDS_formatVersion_2_0_LLNL_4Chars   "2.0.LLNL_4"
#define GNDS_formatVersion_2_1Chars   "2.1"
#define LUPI_DeltaTime_toStringFormatIncremental   "incremental: CPU %8.3fs, wall %8.3fs"
#define LUPI_DeltaTime_toStringFormatTotal   "total: CPU %8.3fs, wall %8.3fs"

Enumerations

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

Functions

void LUPI::deprecatedFunction (std::string const &a_functionName, std::string const &a_replacementName, std::string const &a_asOf)
std::string LUPI::FileInfo::realPath (std::string const &a_path)
std::string LUPI::FileInfo::_basename (std::string const &a_path)
std::string LUPI::FileInfo::basenameWithoutExtension (std::string const &a_path)
std::string LUPI::FileInfo::_dirname (std::string const &a_path)
bool LUPI::FileInfo::exists (std::string const &a_path)
bool LUPI::FileInfo::isDirectory (std::string const &a_path)
bool LUPI::FileInfo::createDirectories (std::string const &a_path)
std::string LUPI::Misc::stripString (std::string const &a_string, bool a_left=true, bool a_right=true)
std::vector< std::string > LUPI::Misc::splitString (std::string const &a_string, char a_delimiter, bool a_strip=false)
std::vector< std::string > LUPI::Misc::splitString (std::string const &a_string, std::string const &a_delimiter, bool a_strip=false)
std::string LUPI::Misc::joinStrings (std::string const &a_sep, std::vector< std::string > a_strings)
std::string LUPI::Misc::replaceString (std::string const &a_string, std::string const &a_old, std::string const &a_new, bool a_all)
std::vector< std::string > LUPI::Misc::splitXLinkString (std::string const &a_string)
bool LUPI::Misc::stringToInt (std::string const &a_string, int &a_value)
bool LUPI::Misc::stringToSize_t (std::string const &a_string, std::size_t &a_value)
std::string LUPI::Misc::argumentsToString (char const *a_format,...)
std::string LUPI::Misc::doubleToString3 (char const *a_format, double a_value, bool a_reduceBits=false)
std::string LUPI::Misc::doubleToShortestString (double a_value, int a_significantDigits=15, int a_favorEFormBy=0)
void LUPI::Misc::printCommand (std::string const &a_indent, int a_argc, char **a_argv)

Macro Definition Documentation

◆ GNDS_formatVersion_1_10Chars

◆ GNDS_formatVersion_2_0_LLNL_4Chars

#define GNDS_formatVersion_2_0_LLNL_4Chars   "2.0.LLNL_4"

Definition at line 50 of file LUPI.hpp.

Referenced by LUPI::FormatVersion::supported().

◆ GNDS_formatVersion_2_0Chars

#define GNDS_formatVersion_2_0Chars   "2.0"

Definition at line 49 of file LUPI.hpp.

Referenced by LUPI::FormatVersion::supported(), and GIDI::Map::Map::toXMLList().

◆ GNDS_formatVersion_2_1Chars

#define GNDS_formatVersion_2_1Chars   "2.1"

Definition at line 51 of file LUPI.hpp.

Referenced by LUPI::FormatVersion::supported().

◆ LUPI_DeltaTime_toStringFormatIncremental

#define LUPI_DeltaTime_toStringFormatIncremental   "incremental: CPU %8.3fs, wall %8.3fs"

Definition at line 343 of file LUPI.hpp.

◆ LUPI_DeltaTime_toStringFormatTotal

#define LUPI_DeltaTime_toStringFormatTotal   "total: CPU %8.3fs, wall %8.3fs"

Definition at line 344 of file LUPI.hpp.

◆ LUPI_FILE_SEPARATOR

#define LUPI_FILE_SEPARATOR   "/"

Definition at line 45 of file LUPI.hpp.

Referenced by LUPI::FileInfo::createDirectories().

◆ LUPI_PATH_MAX

#define LUPI_PATH_MAX   ( 4 * 4096 )

Definition at line 31 of file LUPI.hpp.

◆ LUPI_XML_verionEncoding

#define LUPI_XML_verionEncoding   "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"

Definition at line 28 of file LUPI.hpp.

Referenced by GIDI::Map::Map::toXMLList(), and GIDI::ProtareSingle::toXMLList().