source: trunk/test/tree.cc @ 24

Last change on this file since 24 was 24, checked in by Peter Johansson, 16 years ago

added trivial test for classes and modified tree to go for the full monty

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 854 bytes
Line 
1// $Id: tree.cc 24 2006-01-02 08:20:46Z peter $
2
3#include "Directory.h"
4
5#include <string>
6#include <iostream>
7#include <ctime>
8
9int main(const int argc,const char* argv[])
10{ 
11  using namespace theplu::svnstat;
12
13  tm q;
14  std::cout << "== tm struct ==" << std::endl;
15  std::cout << q.tm_sec << std::endl;
16  std::cout << q.tm_min << std::endl;
17  std::cout << q.tm_hour << std::endl;
18  std::cout << q.tm_mday << std::endl;
19  std::cout << q.tm_mon << std::endl;
20  std::cout << q.tm_year << std::endl;
21  std::cout << q.tm_wday << std::endl;
22  std::cout << q.tm_yday << std::endl;
23  char* blaj = asctime(&q);
24  std::cout << *blaj << std::endl;
25  time_t tjo = mktime(&q);
26  std::cout << tjo << std::endl;
27
28  //  bool print = (argc>1 && argv[1]==std::string("-p"));
29  bool ok = true;
30
31  Directory tree(std::string("c++_tools"));
32
33  tree.purge();
34  tree.parse();
35  tree.print("svnstat_output/");
36 
37  return (ok ? 0 : -1);
38}
Note: See TracBrowser for help on using the repository browser.