1 #ifndef __JEEP__JCOMMENT__
2 #define __JEEP__JCOMMENT__
21 namespace JPP {
using namespace JEEP; }
52 static constexpr
char QUOTE =
'"';
71 if ((
int) this->size() <=
UUID_t)
74 this->insert(this->begin() +
UUID_t, value_type());
102 this->push_back(comment);
116 for (const_iterator i = comment.begin(); i != comment.end(); ++i) {
144 const std::string& buffer = (*this)[
UUID_t];
170 if (in.peek() == (
int)
' ') {
179 buffer.push_back((
char) c);
181 if (c == (
int)
QUOTE) {
183 while ((c = in.get()) != EOF && c != (
int)
QUOTE) {
184 buffer.push_back((
char) c);
187 buffer.push_back(
QUOTE);
191 comment.push_back(buffer);
209 for (JComment::const_iterator i = comment.begin(); i != comment.end(); ++i) {
225 const int N = buffer.size();
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
I/O formatting auxiliaries.
#define MAKE_STRING(A)
Make string.
Exception for missing value.
General puprpose classes and methods.
std::vector< std::string > JComment_t
Type definition of comment block.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const JUUID & rndm()
Generate random UUID.
static JUUID valueOf(const std::string &buffer)
Extract UUID.