Jpp  18.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDBString.hh
Go to the documentation of this file.
1 #ifndef __JDB_JDBString__
2 #define __JDB_JDBString__
3 
4 #include <TROOT.h>
5 
6 #include <string>
7 
8 /**
9  * \author mdejong
10  */
11 namespace JDATABASE {}
12 namespace JPP { using namespace JDATABASE; }
13 
14 namespace JDATABASE {
15 
16  /**
17  * Wrapper class to read string until end-of-line.
18  */
19  struct JDBString :
20  public std::string
21  {
22  /**
23  * Copy constructor.
24  *
25  * \param buffer buffer
26  */
27  JDBString(const std::string& buffer = "") :
28  std::string(buffer)
29  {}
30 
31  /**
32  * Read database string from input stream.
33  *
34  * \param in input stream
35  * \param object database string
36  * \return input stream
37  */
38  friend inline std::istream& operator>>(std::istream& in, JDBString& object)
39  {
40  using namespace std;
41 
42  return getline(in, object);
43  }
44 
46  };
47 }
48 
49 #endif
Wrapper class to read string until end-of-line.
Definition: JDBString.hh:19
then awk string
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Definition: JString.hh:478
friend std::istream & operator>>(std::istream &in, JDBString &object)
Read database string from input stream.
Definition: JDBString.hh:38
JDBString(const std::string &buffer="")
Copy constructor.
Definition: JDBString.hh:27
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
ClassDefNV(JDBString, 1)