Urbi SDK Remote for C++  2.7.5
uvalue-common.cc File Reference
#include <boost/algorithm/string/erase.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <libport/cassert>
#include <libport/compiler.hh>
#include <libport/cstdio>
#include <libport/cstdlib>
#include <libport/cstring>
#include <libport/debug.hh>
#include <libport/escape.hh>
#include <libport/foreach.hh>
#include <libport/format.hh>
#include <libport/iostream>
#include <libport/lexical-cast.hh>
#include <libport/xalloc.hh>
#include <sstream>
#include <iomanip>
#include <urbi/ubinary.hh>
#include <urbi/uvalue.hh>
Include dependency graph for uvalue-common.cc:

Go to the source code of this file.

Namespaces

namespace  urbi
 

Global definition of the starterlist.


Defines

#define SKIP_SPACES()
#define EXPECT(Char)
#define CHECK_NEOF()
#define UVALUE_OPERATORS(Args, DataType, Field, Value)
#define UVALUE_DOUBLE(Type)   UVALUE_OPERATORS(Type v, DATA_DOUBLE, val, v)
#define UVALUE_STRING(Type, Value)   UVALUE_OPERATORS(Type v, DATA_STRING, stringValue, new std::string(Value))
#define UVALUE_BINARY(Type)   UVALUE_OPERATORS(Type v, DATA_BINARY, binary, new UBinary(v, copy))

Functions

 GD_CATEGORY (Urbi.UValue)
int & urbi::kernelMajor (std::ostream &o)
 If a kernel version was associated to this stream, its value.
 urbi::UVALUE_STRING (const void *,(libport::format("%%ptr_%x", v))) UVALUE_OPERATORS(const UDictionary &d
new urbi::UDictionary (d))
std::ostream & urbi::operator<< (std::ostream &o, const UList &t)
std::ostream & urbi::operator<< (std::ostream &s, const urbi::UDictionary &d)
std::string urbi::syncline_push (const std::string &srcdir, std::string file, unsigned line)
 Issue a syncline.

Variables

 urbi::DATA_DICTIONARY = 1
 urbi::dictionary

Detailed Description

Definition in file uvalue-common.cc.


Define Documentation

#define CHECK_NEOF ( )
Value:
do {                                                          \
    if (!message[p])                                            \
    {                                                           \
      GD_ERROR("parse error: unexpected end of file");          \
      return -p;                                                \
    }                                                           \
  } while (false)

Definition at line 140 of file uvalue-common.cc.

Referenced by urbi::UValue::parse().

#define EXPECT (   Char)
Value:
do {                                                          \
    if (message[pos] != Char)                                   \
    {                                                           \
      GD_FERROR("parse error: unexpected `%s', expected `%s'"   \
                " in `%s' at %s",                               \
                message[pos], Char, message, pos);              \
      return -pos;                                              \
    }                                                           \
  } while (false)

Definition at line 128 of file uvalue-common.cc.

Referenced by urbi::UValue::parse().

#define SKIP_SPACES ( )
Value:
while (message[pos] == ' ')                     \
      ++pos

Definition at line 113 of file uvalue-common.cc.

Referenced by urbi::UValue::parse().

#define UVALUE_BINARY (   Type)    UVALUE_OPERATORS(Type v, DATA_BINARY, binary, new UBinary(v, copy))
#define UVALUE_DOUBLE (   Type)    UVALUE_OPERATORS(Type v, DATA_DOUBLE, val, v)

Definition at line 367 of file uvalue-common.cc.

#define UVALUE_OPERATORS (   Args,
  DataType,
  Field,
  Value 
)
Value:
UValue::UValue(Args, bool copy)                 \
    : type(DataType)                                    \
    , Field(Value)                                      \
  {                                                     \
    LIBPORT_USE(copy);                                  \
  }                                                     \
                                                        \
  UValue& UValue::operator=(Args)                       \
  {                                                     \
    clear();                                            \
    type = DataType;                                    \
    Field = Value;                                      \
    return *this;                                       \
  }

Definition at line 351 of file uvalue-common.cc.

#define UVALUE_STRING (   Type,
  Value 
)    UVALUE_OPERATORS(Type v, DATA_STRING, stringValue, new std::string(Value))

Definition at line 385 of file uvalue-common.cc.


Function Documentation

GD_CATEGORY ( Urbi.  UValue)