7 #include <zypp/base/Logger.h>
8 #include <zypp/base/Exception.h>
9 #include <zypp/base/String.h>
10 #include <zypp/base/PtrTypes.h>
12 #include <zypp/source/susetags/PackagesParser.h>
16 ///////////////////////////////////////////////////////////////////
18 { /////////////////////////////////////////////////////////////////
19 ////////////////////////////////////////////////////////////////////////////
23 ////////////////////////////////////////////////////////////////////////////
28 : _begin( time(NULL) )
30 USR << "START MEASURE..." << endl;
34 USR << "DURATION: " << (time(NULL)-_begin) << " sec." << endl;
37 ////////////////////////////////////////////////////////////////////////////
38 ///////////////////////////////////////////////////////////////////
40 { /////////////////////////////////////////////////////////////////
41 ///////////////////////////////////////////////////////////////////
43 { /////////////////////////////////////////////////////////////////
49 /////////////////////////////////////////////////////////////////
50 } // namespace tagfile
51 ///////////////////////////////////////////////////////////////////
52 /////////////////////////////////////////////////////////////////
54 ///////////////////////////////////////////////////////////////////
55 /////////////////////////////////////////////////////////////////
57 ///////////////////////////////////////////////////////////////////
58 ////////////////////////////////////////////////////////////////////////////
62 ////////////////////////////////////////////////////////////////////////////
67 ////////////////////////////////////////////////////////////////////////////
71 ////////////////////////////////////////////////////////////////////////////
72 int main( int argc, char* argv[] )
74 INT << "===[START]==========================================" << endl;
81 std::list<Package::Ptr> result( source::susetags::parsePackages( infile ) );
82 SEC << result.size() << endl;
84 catch( Exception & excpt )
86 ZYPP_RETHROW( excpt );
89 INT << "===[END]============================================" << endl;