#include <boost/test/unit_test.hpp>
#include <Nice/Property/ParserSpiritFits.h>
#include <Nice/Property/Cast.h>
#include <Nice/Property/Operators.h>
#include <Nice/BuiltinSequences.h>
#include <boost/assign/list_of.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/if.hpp>
#include <Nice/Property/BitSet.h>
#include <Nice/Map.h>
#include <Nice/App/Endpoint.h>
#include <string>
#include <sstream>
#include <functional>
|
Nice::SeqString | s_comments = ba::list_of("# nospace")("// nospace")("/* quote space */")("// NODE:INT=10")("# NODE:INT=10")("/* \n NODE:INT=10 \n*/") |
|
Nice::SeqString | s_string |
| These are the atom types. More...
|
|
Nice::SeqString | s_integer = ba::list_of("12")("+13")("-14")(" 15")("16 ")(" -17")("-18 ")(" +18")("+19 ") |
|
Nice::SeqString | s_unsigned = ba::list_of("12")(" 13")("15 ") |
|
Nice::SeqString | s_double = ba::list_of(" 11.1")("12.")(".12")("13.1 ")("-15.0")("2e10")("3E11")("0.1e13")("+0.3e10")("-0.2e10")("3E-66")("-3E+66") |
|
Nice::SeqString | s_float = ba::list_of(" 11.1")("12.")(".12")("13.1 ")("-15.0")("2e10")("3E11")("0.1e13")("+0.3e10")("-0.2e10") |
|
Nice::SeqString | s_bitset = ba::list_of("0b01011")("0b1101:10")("0xff")("0x0:16")(" 0b01011")("0b1101:10")("0xff ")("0x0:16 ")("0x0:32 ") |
|
Nice::SeqString | s_date = ba::list_of("2012-02-21 17:49:19.324896")("2012-02-21 17:49:19.0")("2012-02-21") |
|
Nice::SeqString | s_time = ba::list_of("17:49:19.324896")("+17:49:19.0")("-17:49:19.6 ") |
|
Nice::SeqString | s_endpoint |
|
Nice::SeqString | s_size = ba::list_of("[10,11]")("[12., 13.2]")("[ 14.5 ,15.6]") |
|
Nice::SeqString | s_point = ba::list_of("[10,11]")("[12., 13.2]")("[ 14.5 ,15.6]") |
|
Nice::SeqString | s_line = ba::list_of("")("[ [ 14.5 ,15.6],[ 16.7 ,17.8]]") |
|
Nice::SeqString | s_rect = ba::list_of("")("[ [ 14.5 ,15.6],[ 16.7 ,17.8]]") |
|
Nice::SeqString | s_wmatrix = ba::list_of("")("[ [1.0,2.0 ] ,[3.0 ,4.0], [5.0, 6.0] ]") |
|
◆ BOOST_AUTO_TEST_CASE() [1/6]
BOOST_AUTO_TEST_CASE |
( |
Comments |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/6]
BOOST_AUTO_TEST_CASE |
( |
AutoTypeTest |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/6]
BOOST_AUTO_TEST_CASE |
( |
ForceTypeTest |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/6]
BOOST_AUTO_TEST_CASE |
( |
ForceMapTypeTest |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [5/6]
BOOST_AUTO_TEST_CASE |
( |
ForceStringEverythingTest |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [6/6]
BOOST_AUTO_TEST_CASE |
( |
AutoSeqStringTest |
| ) |
|
◆ parse()
◆ s_bitset
Nice::SeqString s_bitset = ba::list_of("0b01011")("0b1101:10")("0xff")("0x0:16")(" 0b01011")("0b1101:10")("0xff ")("0x0:16 ")("0x0:32 ") |
◆ s_comments
Nice::SeqString s_comments = ba::list_of("# nospace")("// nospace")("/* quote space */")("// NODE:INT=10")("# NODE:INT=10")("/* \n NODE:INT=10 \n*/") |
◆ s_date
Nice::SeqString s_date = ba::list_of("2012-02-21 17:49:19.324896")("2012-02-21 17:49:19.0")("2012-02-21") |
◆ s_double
Nice::SeqString s_double = ba::list_of(" 11.1")("12.")(".12")("13.1 ")("-15.0")("2e10")("3E11")("0.1e13")("+0.3e10")("-0.2e10")("3E-66")("-3E+66") |
◆ s_endpoint
Initial value:= ba::list_of("[NAME=Name]")("[ NAME=Name, PROTOCOL= tcp, PORT =1234]")("[NAME=Name, PROTOCOL=tcp, HOST=o2kpc, PORT=1234] ")
(" [NAME=Name.sub , PROTOCOL=tcp, HOST=127.0.0.1, COMPRESSION=true]")("[NAME=Name, PROTOCOL=tcp, TWOWAY=False]")
("[NAME=Name, MULTICAST=true]")("[NAME=Name, MULTICAST=true]")
◆ s_float
Nice::SeqString s_float = ba::list_of(" 11.1")("12.")(".12")("13.1 ")("-15.0")("2e10")("3E11")("0.1e13")("+0.3e10")("-0.2e10") |
◆ s_integer
Nice::SeqString s_integer = ba::list_of("12")("+13")("-14")(" 15")("16 ")(" -17")("-18 ")(" +18")("+19 ") |
◆ s_line
◆ s_point
Nice::SeqString s_point = ba::list_of("[10,11]")("[12., 13.2]")("[ 14.5 ,15.6]") |
◆ s_rect
◆ s_size
Nice::SeqString s_size = ba::list_of("[10,11]")("[12., 13.2]")("[ 14.5 ,15.6]") |
◆ s_string
Initial value:= ba::list_of("nospace")(" \"quote_nospace\"")("\"quote with space\" ")(" \"quote with , here\"")("\"quote with \\\"\"")
("\"with space\n and\n\r newline\"")("\"quote these [, ]\"")("!§:$%°!&/()")
These are the atom types.
◆ s_time
Nice::SeqString s_time = ba::list_of("17:49:19.324896")("+17:49:19.0")("-17:49:19.6 ") |
◆ s_unsigned
◆ s_wmatrix
Nice::SeqString s_wmatrix = ba::list_of("")("[ [1.0,2.0 ] ,[3.0 ,4.0], [5.0, 6.0] ]") |