Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
JCOMPAREHISTOGRAMS::JResultTitle Class Reference

Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived classes. More...

#include <JResultTitle.hh>

Inheritance diagram for JCOMPAREHISTOGRAMS::JResultTitle:
JEEP::JProperties std::map< std::string, JPropertiesElement > JLANG::JEquationParameters JEEP::JMessage< JProperties >

Public Types

typedef std::map< std::string,
JPropertiesElement
JMap_t
 

Public Member Functions

 JResultTitle ()
 Default constructor. More...
 
 JResultTitle (std::string Name, std::string Parameter, bool Passed, double Value)
 Constructor. More...
 
std::string getTitle ()
 Returns a standard string to be used as title of a graphical root object. More...
 
template<class T >
void put (const std::string &key, T &object)
 Put object at given key. More...
 
JPropertiesjoin (const JProperties &properties)
 Join properties objects. More...
 
JEquationParametersjoin (const JEquationParameters &value)
 Join equation parameters. More...
 
bool read (const JEquation &equation)
 Read equation. More...
 
bool read (const std::string &buffer)
 Read from input string. More...
 
std::istream & read (std::istream &in)
 Read from input stream. More...
 
std::istream & read (std::istream &in, const std::string &format)
 Read from input stream according given format. More...
 
template<class T >
std::istream & read (std::istream &in, T __begin, T __end)
 Read from input stream according given format. More...
 
std::ostream & write (std::ostream &out) const
 Write the current parameter values. More...
 
std::ostream & write (std::ostream &out, const std::string &format)
 Write to output stream according given format. More...
 
template<class T >
std::ostream & write (std::ostream &out, T __begin, T __end)
 Write to output stream according given format. More...
 
std::string sed (const std::string &format, const std::string &prefix="", const std::string &postfix="")
 Stream editing of input format. More...
 
template<class T >
const TgetValue (const std::string &key) const
 Get value. More...
 
template<class T >
TgetValue (const std::string &key)
 Get value. More...
 
template<class T >
void setValue (const std::string &key, const T &value)
 Set value. More...
 
std::string getString (const std::string &key) const
 Get string value. More...
 
std::ostream & print (std::ostream &out) const
 Print the current parameter values. More...
 
const JEquationParametersgetEquationParameters () const
 Get equation parameters. More...
 
void setEquationParameters (const JEquationParameters &buffer)
 Set equation parameters. More...
 
const char getDefaultSeparator () const
 Get default separator character. More...
 
const std::stringgetSeparator () const
 Get separator characters. More...
 
void setSeparator (const std::string &sep)
 Set separator character(s). More...
 
const char getDefaultEndOfLine () const
 Get default end of line character. More...
 
const char getPreferredEndOfLine (const unsigned int index) const
 Get preferred end of line character. More...
 
const std::stringgetEndOfLine () const
 Get end of line characters. More...
 
void setEndOfLine (const std::string &eol)
 Set end of line characters. More...
 
const char getDefaultDivision () const
 Get default division character. More...
 
const std::stringgetDivision () const
 Get division characters. More...
 
void setDivision (const std::string &div)
 Set division characters. More...
 
const char getDefaultSkipLine () const
 Get default skip line character. More...
 
const std::stringgetSkipLine () const
 Get skip line characters. More...
 
void setSkipLine (const std::string &skip)
 Set skip line characters. More...
 
void setBrackets (const char left, const char right)
 Set brackets. More...
 
char getLeftBracket () const
 Get left bracket. More...
 
char getRightBracket () const
 Get right bracket. More...
 
const char getDefaultWhiteSpace () const
 Get default white space character. More...
 
const std::stringgetWhiteSpace () const
 Get white space characters. More...
 
void setWhiteSpace (const std::string &ws)
 Set white space characters. More...
 
bool isSeparator (const char c) const
 Test for separator character. More...
 
bool isEndOfLine (const char c) const
 Test for end of line character. More...
 
bool isDivision (const char c) const
 Test for division character. More...
 
bool isSkipLine (const char c) const
 Test for skip line character. More...
 
bool isLeftBracket (const char c) const
 Test for left bracket character. More...
 
bool isRightBracket (const char c) const
 Test for right bracket character. More...
 
bool isWhiteSpace (const char c) const
 Test for white space character. More...
 

Static Public Member Functions

static std::string getKey (const std::string &buffer, const std::string &sep)
 Utility method to strip off all leading characters from a string until specified character(s). More...
 

Public Attributes

std::string name
 
std::string parameter
 
std::string passed
 
double value
 

Static Public Attributes

static int debug
 

Protected Attributes

std::string sep
 
std::string eol
 
std::string div
 
std::string skip
 
char left
 
char right
 
std::string ws
 

Detailed Description

Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived classes.

Definition at line 22 of file JResultTitle.hh.

Member Typedef Documentation

Definition at line 503 of file JProperties.hh.

Constructor & Destructor Documentation

JCOMPAREHISTOGRAMS::JResultTitle::JResultTitle ( )
inline

Default constructor.

Definition at line 29 of file JResultTitle.hh.

30  {
31  this->setEndOfLine(":");
32  this->insert(gmake_property(name));
33  this->insert(gmake_property(parameter));
34  this->insert(gmake_property(value));
35  this->insert(gmake_property(passed));
36  };
#define gmake_property(A)
macro to convert (template) parameter to JPropertiesElement object
void setEndOfLine(const std::string &eol)
Set end of line characters.
JCOMPAREHISTOGRAMS::JResultTitle::JResultTitle ( std::string  Name,
std::string  Parameter,
bool  Passed,
double  Value 
)
inline

Constructor.

Parameters
NameTest name
ParameterName of the parameter used to decide if the test passes.
ValueValue of the parameter used to decide if the test passes.
PassedTrue if the test passes, false if it fails.

Definition at line 47 of file JResultTitle.hh.

47  :
48  name (Name),
49  parameter (Parameter),
50  value (Value)
51  {
52  this->setEndOfLine(":");
53  passed = Passed ? "TRUE" : "FALSE";
54 
55  this->insert(gmake_property(name));
56  this->insert(gmake_property(parameter));
57  this->insert(gmake_property(value));
58  this->insert(gmake_property(passed));
59  }
#define gmake_property(A)
macro to convert (template) parameter to JPropertiesElement object
void setEndOfLine(const std::string &eol)
Set end of line characters.

Member Function Documentation

std::string JCOMPAREHISTOGRAMS::JResultTitle::getTitle ( )
inline

Returns a standard string to be used as title of a graphical root object.

Definition at line 64 of file JResultTitle.hh.

64  {
65  return MAKE_STRING(*this);
66  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:127
static std::string JEEP::JProperties::getKey ( const std::string buffer,
const std::string sep 
)
inlinestaticinherited

Utility method to strip off all leading characters from a string until specified character(s).

Parameters
bufferinput string
seplast character(s) to strip
Returns
modified string

Definition at line 515 of file JProperties.hh.

516  {
517  using namespace std;
518 
519  const size_type pos = buffer.find_last_of(sep);
520 
521  if (pos != string::npos)
522  return buffer.substr(pos + 1);
523  else
524  return buffer;
525  }
template<class T >
void JEEP::JProperties::put ( const std::string key,
T object 
)
inlineinherited

Put object at given key.

Parameters
keykey
objectobject

Definition at line 650 of file JProperties.hh.

651  {
652  this->insert(value_type(key, JPropertiesElement(object)));
653  }
The property value class.
Definition: JProperties.hh:293
JProperties& JEEP::JProperties::join ( const JProperties properties)
inlineinherited

Join properties objects.

Parameters
propertiesproperties

Definition at line 661 of file JProperties.hh.

662  {
663  JEquationParameters::join(properties);
664 
665  insert(properties.begin(), properties.end());
666 
667  return *this;
668  }
JEquationParameters & join(const JEquationParameters &value)
Join equation parameters.
JEquationParameters& JLANG::JEquationParameters::join ( const JEquationParameters value)
inlineinherited

Join equation parameters.

Parameters
valueequation parameters

Definition at line 325 of file JEquationParameters.hh.

326  {
327  using namespace std;
328 
329  for (string::const_iterator i = value.sep.begin(); i != value.sep.end(); ++i) {
330  if (!isSeparator(*i)) {
331  sep += *i;
332  }
333  }
334 
335  for (string::const_iterator i = value.eol.begin(); i != value.eol.end(); ++i) {
336  if (!isEndOfLine(*i)) {
337  eol += *i;
338  }
339  }
340 
341  for (string::const_iterator i = value.div.begin(); i != value.div.end(); ++i) {
342  if (!isDivision(*i)) {
343  div += *i;
344  }
345  }
346 
347  for (string::const_iterator i = value.skip.begin(); i != value.skip.end(); ++i) {
348  if (!isSkipLine(*i)) {
349  skip += *i;
350  }
351  }
352 
353  for (string::const_iterator i = value.ws.begin(); i != value.ws.end(); ++i) {
354  if (!isWhiteSpace(*i)) {
355  ws += *i;
356  }
357  }
358 
359  return *this;
360  }
bool isEndOfLine(const char c) const
Test for end of line character.
bool isWhiteSpace(const char c) const
Test for white space character.
bool isSkipLine(const char c) const
Test for skip line character.
bool isSeparator(const char c) const
Test for separator character.
bool isDivision(const char c) const
Test for division character.
bool JEEP::JProperties::read ( const JEquation equation)
inlineinherited

Read equation.

Parameters
equationequation
Returns
status

Definition at line 677 of file JProperties.hh.

678  {
679  using namespace std;
680 
681  iterator p = find(equation.getKey());
682 
683  DEBUG("Processing key: " << equation.getKey() << ' ' << (p != end()) << endl);
684 
685  if (p != end()) {
686 
687  istringstream is(equation.getValue());
688 
689  if (isDivision(equation.getSeparator())) {
690 
691  if (p->second->is_properties()) {
692 
693  p->second->read(is);
694 
695  } else {
696 
697  ERROR("JProperties::read(): no properties object after division <" << equation.getKey() << ">" << endl);
698  }
699 
700  } else if (isSeparator(equation.getSeparator())) {
701 
702  try {
703  p->second->read(is);
704  }
705  catch(const exception& error) {
706  ERROR("JProperties::read(): read error at key <" << equation.getKey() << "> " << error.what() << endl);
707  }
708 
709  } else {
710 
711  ERROR("JProperties::read(): illegal character following key <" << equation.getKey() << "> " << equation.getSeparator() << endl);
712  }
713 
714  if (p->second.getEndMarker()) {
715  return false;
716  }
717 
718  if (fail(is)) {
719 
720  ERROR("JProperties::read(): error reading data for key <" << equation.getKey() << "> " << equation.getValue() << endl);
721  }
722 
723  } else {
724 
725  WARNING("JProperties::read(): unknown key <" << equation.getKey() << ">" << endl);
726  }
727 
728  return true;
729  }
is
Definition: JDAQCHSM.chsm:167
#define ERROR(A)
Definition: JMessage.hh:66
bool fail(std::istream &in)
Check for stream state.
Definition: JProperties.hh:57
bool isSeparator(const char c) const
Test for separator character.
bool isDivision(const char c) const
Test for division character.
then echo WARNING
Definition: JTuneHV.sh:91
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62
bool JEEP::JProperties::read ( const std::string buffer)
inlineinherited

Read from input string.

Parameters
bufferinput string
Returns
read status

Definition at line 738 of file JProperties.hh.

739  {
740  std::istringstream in(buffer);
741 
742  return !fail(read(in));
743  }
bool read(const JEquation &equation)
Read equation.
Definition: JProperties.hh:677
bool fail(std::istream &in)
Check for stream state.
Definition: JProperties.hh:57
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
std::istream& JEEP::JProperties::read ( std::istream &  in)
inlineinherited

Read from input stream.

The input format is:

   [<key><sub>]<key><sep><value><eol>
   [<key><sub>]<key><sep><value><eol>

In this, white spaces are ignored. The reading of key and value pairs is controlled by the JLANG::JEquationFacet class.

Parameters
ininput stream
Returns
input stream

Definition at line 760 of file JProperties.hh.

761  {
762  using namespace std;
763 
764  in.imbue(locale(in.getloc(), new JEquationFacet(*this)));
765 
766  for (JEquation equation; in >> equation && read(equation); ) {}
767 
768  return in;
769  }
bool read(const JEquation &equation)
Read equation.
Definition: JProperties.hh:677
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
std::istream& JEEP::JProperties::read ( std::istream &  in,
const std::string format 
)
inlineinherited

Read from input stream according given format.

For each key in the format specification, a corresponding value will be read from the input stream.

Parameters
ininput stream
formatformat
Returns
input stream

Definition at line 782 of file JProperties.hh.

783  {
784  using namespace std;
785 
786  istringstream is(format);
787 
788  vector<string> buffer;
789 
790  for (string key; is >> key; ) {
791  buffer.push_back(key);
792  }
793 
794  return read(in, buffer.begin(), buffer.end());
795  }
bool read(const JEquation &equation)
Read equation.
Definition: JProperties.hh:677
is
Definition: JDAQCHSM.chsm:167
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
template<class T >
std::istream& JEEP::JProperties::read ( std::istream &  in,
T  __begin,
T  __end 
)
inlineinherited

Read from input stream according given format.

For each key in the format specification, a corresponding value will be read from the input stream.

Parameters
ininput stream
__beginbegin of format
__endend of format
Returns
input stream

Definition at line 810 of file JProperties.hh.

811  {
812  using namespace std;
813 
814  for (T i = __begin; i != __end; ++i) {
815 
816  iterator p = find(*i);
817 
818  if (p != end()) {
819 
820  p->second->read(in);
821 
822  } else {
823 
824  WARNING("JProperties::read(): unknown key <" << *i << ">" << endl);
825  }
826  }
827 
828  return in;
829  }
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
then echo WARNING
Definition: JTuneHV.sh:91
std::ostream& JEEP::JProperties::write ( std::ostream &  out) const
inlineinherited

Write the current parameter values.

The output format is

[<key><sub>]<key><sep><value><eol> [<key><sub>]<key><sep><value><eol>

in this, white spaces are omitted.

Parameters
outoutput stream
Returns
output stream

Definition at line 845 of file JProperties.hh.

846  {
847  using namespace std;
848 
849  for (const_iterator i = begin(); i != end(); ++i) {
850 
851  char c = ' ';
852 
853  if (i->second->is_properties()) {
854  c = getDefaultDivision ();
855  } else {
856  c = getDefaultSeparator();
857  }
858 
859  i->second->write(out, (i->first + c).c_str(), getDefaultEndOfLine());
860  }
861 
862  out << flush;
863 
864  return out;
865  }
const char getDefaultSeparator() const
Get default separator character.
const char getDefaultDivision() const
Get default division character.
const char getDefaultEndOfLine() const
Get default end of line character.
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
std::ostream& JEEP::JProperties::write ( std::ostream &  out,
const std::string format 
)
inlineinherited

Write to output stream according given format.

For each key in the format specification, a corresponding value will be written to the output stream.

Parameters
outoutput stream
formatformat
Returns
output stream

Definition at line 878 of file JProperties.hh.

879  {
880  using namespace std;
881 
882  istringstream is(format);
883 
884  vector<string> buffer;
885 
886  for (string key; is >> key; ) {
887  buffer.push_back(key);
888  }
889 
890  return write(out, buffer.begin(), buffer.end());
891  }
is
Definition: JDAQCHSM.chsm:167
std::ostream & write(std::ostream &out) const
Write the current parameter values.
Definition: JProperties.hh:845
template<class T >
std::ostream& JEEP::JProperties::write ( std::ostream &  out,
T  __begin,
T  __end 
)
inlineinherited

Write to output stream according given format.

For each key in the format specification, a corresponding value will be written to the output stream.

Parameters
outoutput stream
__beginbegin of format
__endend of format
Returns
output stream

Definition at line 906 of file JProperties.hh.

907  {
908  using namespace std;
909 
910  for (T i = __begin; i != __end; ++i) {
911 
912  iterator p = find(*i);
913 
914  if (p != end()) {
915 
916  out << getDefaultWhiteSpace();
917 
918  p->second->write(out);
919 
920  } else {
921 
922  WARNING("JProperties::write(): unknown key <" << *i << ">" << endl);
923  }
924  }
925 
926  return out;
927  }
const char getDefaultWhiteSpace() const
Get default white space character.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo WARNING
Definition: JTuneHV.sh:91
std::string JEEP::JProperties::sed ( const std::string format,
const std::string prefix = "",
const std::string postfix = "" 
)
inlineinherited

Stream editing of input format.

For each key in the format specification, a corresponding value will be written to the output stream.

Parameters
formatformat
prefixprefix key word
postfixpostfix key word
Returns
output stream

Definition at line 941 of file JProperties.hh.

944  {
945  using namespace std;
946 
947  string buffer = format;
948 
949  for (iterator i = begin(); i != end(); ++i) {
950 
951  string::size_type ipos = 0;
952 
953  while ((ipos = buffer.find(prefix + i->first + postfix, ipos)) != string::npos) {
954 
955  ostringstream out;
956 
957  i->second->write(out);
958 
959  buffer.replace(ipos, prefix.length() + i->first.length() + postfix.length(), out.str());
960  }
961  }
962 
963  return buffer;
964  }
template<class T >
const T& JEEP::JProperties::getValue ( const std::string key) const
inlineinherited

Get value.

Parameters
keykey
Returns
value of this JPropertiesElement

Definition at line 974 of file JProperties.hh.

975  {
976  const_iterator i = find(key);
977 
978  if (i != end())
979  return i->second.getValue<T>();
980  else
981  THROW(JPropertiesException, "Key <" << key << "> not found at JPropertiesElement::getValue()");
982  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
do set_variable OUTPUT_DIRECTORY $WORKDIR T
template<class T >
T& JEEP::JProperties::getValue ( const std::string key)
inlineinherited

Get value.

Parameters
keykey
Returns
value of this JPropertiesElement

Definition at line 992 of file JProperties.hh.

993  {
994  iterator i = find(key);
995 
996  if (i != end())
997  return i->second.getValue<T>();
998  else
999  THROW(JPropertiesException, "Key <" << key << "> not found at JPropertiesElement::getValue()");
1000  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
do set_variable OUTPUT_DIRECTORY $WORKDIR T
template<class T >
void JEEP::JProperties::setValue ( const std::string key,
const T value 
)
inlineinherited

Set value.

Parameters
keykey
valuevalue

Definition at line 1010 of file JProperties.hh.

1011  {
1012  iterator i = find(key);
1013 
1014  if (i != end())
1015  return i->second.setValue<T>(value);
1016  else
1017  THROW(JPropertiesException, "Key <" << key << "> not found at JPropertiesElement::setValue()");
1018  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
do set_variable OUTPUT_DIRECTORY $WORKDIR T
std::string JEEP::JProperties::getString ( const std::string key) const
inlineinherited

Get string value.

Parameters
keykey
Returns
value

Definition at line 1027 of file JProperties.hh.

1028  {
1029  const_iterator i = find(key);
1030 
1031  if (i != end())
1032  return i->second.toString();
1033  else
1034  THROW(JPropertiesException, "Key <" << key << "> not found at JPropertiesElement::getString()");
1035  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
std::ostream& JEEP::JProperties::print ( std::ostream &  out) const
inlineinherited

Print the current parameter values.

Parameters
outoutput stream
Returns
output stream

Definition at line 1044 of file JProperties.hh.

1045  {
1046  write(out);
1047 
1048  return out;
1049  }
std::ostream & write(std::ostream &out) const
Write the current parameter values.
Definition: JProperties.hh:845
const JEquationParameters& JLANG::JEquationParameters::getEquationParameters ( ) const
inlineinherited

Get equation parameters.

Returns
equation parameters

Definition at line 71 of file JEquationParameters.hh.

72  {
73  return *this;
74  }
void JLANG::JEquationParameters::setEquationParameters ( const JEquationParameters buffer)
inlineinherited

Set equation parameters.

Parameters
bufferequation parameters

Definition at line 82 of file JEquationParameters.hh.

83  {
84  static_cast<JEquationParameters&>(*this) = buffer;
85  }
Simple data structure to support I/O of equations (see class JLANG::JEquation).
const char JLANG::JEquationParameters::getDefaultSeparator ( ) const
inlineinherited

Get default separator character.

Returns
separator between parameter and its value

Definition at line 93 of file JEquationParameters.hh.

94  {
95  if (sep.empty())
96  return '=';
97  else
98  return sep[0];
99  }
const std::string& JLANG::JEquationParameters::getSeparator ( ) const
inlineinherited

Get separator characters.

Returns
separator between parameter and its value

Definition at line 107 of file JEquationParameters.hh.

108  {
109  return sep;
110  }
void JLANG::JEquationParameters::setSeparator ( const std::string sep)
inlineinherited

Set separator character(s).

Parameters
sepseparator between parameter and its value

Definition at line 118 of file JEquationParameters.hh.

119  {
120  this->sep = sep;
121  }
const char JLANG::JEquationParameters::getDefaultEndOfLine ( ) const
inlineinherited

Get default end of line character.

Returns
end of line character

Definition at line 129 of file JEquationParameters.hh.

130  {
131  if (eol.empty())
132  return '\n';
133  else
134  return eol[0];
135  }
const char JLANG::JEquationParameters::getPreferredEndOfLine ( const unsigned int  index) const
inlineinherited

Get preferred end of line character.

Parameters
indexindex
Returns
end of line character

Definition at line 144 of file JEquationParameters.hh.

145  {
146  if (eol.empty())
147  return '\n';
148  else if (index < eol.size())
149  return eol[index];
150  else
151  return eol[0];
152  }
const std::string& JLANG::JEquationParameters::getEndOfLine ( ) const
inlineinherited

Get end of line characters.

Returns
end of line characters

Definition at line 160 of file JEquationParameters.hh.

161  {
162  return eol;
163  }
void JLANG::JEquationParameters::setEndOfLine ( const std::string eol)
inlineinherited

Set end of line characters.

Parameters
eolend of line character

Definition at line 171 of file JEquationParameters.hh.

172  {
173  this->eol = eol;
174  }
const char JLANG::JEquationParameters::getDefaultDivision ( ) const
inlineinherited

Get default division character.

Returns
division character

Definition at line 182 of file JEquationParameters.hh.

183  {
184  if (div.empty())
185  return '.';
186  else
187  return div[0];
188  }
const std::string& JLANG::JEquationParameters::getDivision ( ) const
inlineinherited

Get division characters.

Returns
division characters

Definition at line 196 of file JEquationParameters.hh.

197  {
198  return div;
199  }
void JLANG::JEquationParameters::setDivision ( const std::string div)
inlineinherited

Set division characters.

Parameters
divdivision characters

Definition at line 207 of file JEquationParameters.hh.

208  {
209  this->div = div;
210  }
const char JLANG::JEquationParameters::getDefaultSkipLine ( ) const
inlineinherited

Get default skip line character.

Returns
skip line character

Definition at line 218 of file JEquationParameters.hh.

219  {
220  if (skip.empty())
221  return '#';
222  else
223  return skip[0];
224  }
const std::string& JLANG::JEquationParameters::getSkipLine ( ) const
inlineinherited

Get skip line characters.

Returns
skip line characters

Definition at line 232 of file JEquationParameters.hh.

233  {
234  return skip;
235  }
void JLANG::JEquationParameters::setSkipLine ( const std::string skip)
inlineinherited

Set skip line characters.

Parameters
skipskip line characters

Definition at line 243 of file JEquationParameters.hh.

244  {
245  this->skip = skip;
246  }
void JLANG::JEquationParameters::setBrackets ( const char  left,
const char  right 
)
inlineinherited

Set brackets.

Parameters
leftleft bracket
rightright bracket

Definition at line 255 of file JEquationParameters.hh.

256  {
257  this->left = left;
258  this->right = right;
259  }
char JLANG::JEquationParameters::getLeftBracket ( ) const
inlineinherited

Get left bracket.

Returns
left bracket

Definition at line 267 of file JEquationParameters.hh.

268  {
269  return left;
270  }
char JLANG::JEquationParameters::getRightBracket ( ) const
inlineinherited

Get right bracket.

Returns
right bracket

Definition at line 278 of file JEquationParameters.hh.

279  {
280  return right;
281  }
const char JLANG::JEquationParameters::getDefaultWhiteSpace ( ) const
inlineinherited

Get default white space character.

Returns
white space character

Definition at line 289 of file JEquationParameters.hh.

290  {
291  if (ws.empty())
292  return ' ';
293  else
294  return ws[0];
295  }
const std::string& JLANG::JEquationParameters::getWhiteSpace ( ) const
inlineinherited

Get white space characters.

Returns
white space characters

Definition at line 303 of file JEquationParameters.hh.

304  {
305  return ws;
306  }
void JLANG::JEquationParameters::setWhiteSpace ( const std::string ws)
inlineinherited

Set white space characters.

Parameters
wswhite space characters

Definition at line 314 of file JEquationParameters.hh.

315  {
316  this->ws = ws;
317  }
bool JLANG::JEquationParameters::isSeparator ( const char  c) const
inlineinherited

Test for separator character.

Parameters
ccharacter
Returns
true if separator; else false

Definition at line 369 of file JEquationParameters.hh.

370  {
371  return sep .find(c) != std::string::npos;
372  }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
bool JLANG::JEquationParameters::isEndOfLine ( const char  c) const
inlineinherited

Test for end of line character.

Parameters
ccharacter
Returns
true if end of line; else false

Definition at line 381 of file JEquationParameters.hh.

381 { return eol .find(c) != std::string::npos; }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
bool JLANG::JEquationParameters::isDivision ( const char  c) const
inlineinherited

Test for division character.

Parameters
ccharacter
Returns
true if division; else false

Definition at line 390 of file JEquationParameters.hh.

391  {
392  return div .find(c) != std::string::npos;
393  }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
bool JLANG::JEquationParameters::isSkipLine ( const char  c) const
inlineinherited

Test for skip line character.

Parameters
ccharacter
Returns
true if skip line; else false

Definition at line 402 of file JEquationParameters.hh.

403  {
404  return skip.find(c) != std::string::npos;
405  }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
bool JLANG::JEquationParameters::isLeftBracket ( const char  c) const
inlineinherited

Test for left bracket character.

Parameters
ccharacter
Returns
true if left bracket; else false

Definition at line 414 of file JEquationParameters.hh.

415  {
416  return c == left;
417  }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
bool JLANG::JEquationParameters::isRightBracket ( const char  c) const
inlineinherited

Test for right bracket character.

Parameters
ccharacter
Returns
true if right bracket; else false

Definition at line 426 of file JEquationParameters.hh.

427  {
428  return c == right;
429  }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
bool JLANG::JEquationParameters::isWhiteSpace ( const char  c) const
inlineinherited

Test for white space character.

Parameters
ccharacter
Returns
true if white space; else false

Definition at line 438 of file JEquationParameters.hh.

439  {
440  return ws .find(c) != std::string::npos;
441  }
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'

Member Data Documentation

std::string JCOMPAREHISTOGRAMS::JResultTitle::name

Test name.

Definition at line 68 of file JResultTitle.hh.

std::string JCOMPAREHISTOGRAMS::JResultTitle::parameter

Name of the parameter used to evaluate the test.

Definition at line 69 of file JResultTitle.hh.

std::string JCOMPAREHISTOGRAMS::JResultTitle::passed

Human readable version of "passed".

Definition at line 70 of file JResultTitle.hh.

double JCOMPAREHISTOGRAMS::JResultTitle::value

Value of the parameter used to evaluate the test.

Definition at line 71 of file JResultTitle.hh.

std::string JLANG::JEquationParameters::sep
protectedinherited

Definition at line 444 of file JEquationParameters.hh.

std::string JLANG::JEquationParameters::eol
protectedinherited

Definition at line 445 of file JEquationParameters.hh.

std::string JLANG::JEquationParameters::div
protectedinherited

Definition at line 446 of file JEquationParameters.hh.

std::string JLANG::JEquationParameters::skip
protectedinherited

Definition at line 447 of file JEquationParameters.hh.

char JLANG::JEquationParameters::left
protectedinherited

Definition at line 448 of file JEquationParameters.hh.

char JLANG::JEquationParameters::right
protectedinherited

Definition at line 449 of file JEquationParameters.hh.

std::string JLANG::JEquationParameters::ws
protectedinherited

Definition at line 450 of file JEquationParameters.hh.

int JEEP::JMessage< JProperties >::debug
staticinherited

debug level (default is off).

Definition at line 45 of file JMessage.hh.


The documentation for this class was generated from the following file: