From bf53de3dfa4db68627f2935e6b2144835604df3a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 16 Oct 2009 16:09:02 +0000 Subject: Finally added the substream class, and added getByPath (for properties) and getChildByPath (for groups) to the TafGroup class. --- src/unit/taf.unit | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/unit/taf.unit') diff --git a/src/unit/taf.unit b/src/unit/taf.unit index eeddd53..a9329fe 100644 --- a/src/unit/taf.unit +++ b/src/unit/taf.unit @@ -109,3 +109,13 @@ // Woot } } + +{%bypath1} +{ + Bu::MemBuf mb("{outer: \"Hello=\" {inner: {final: test=hi} } }"); + Bu::TafReader tr( mb ); + const Bu::TafGroup *g = tr.readGroup(); + unitTest( g->getChildByPath("inner/final")->getProperty("test") == "hi" ); + unitTest( g->getByPath("inner/final/test") == "hi" ); +} + -- cgit v1.2.3