testProperties.cpp
Go to the documentation of this file.
1 #include "Properties.hh"
2 #include <iostream>
3 #include <fstream>
4 
5 int main(int argc, char** argv) {
6  log4cpp::Properties properties;
7  std::string inFile = (argc > 1) ? argv[1] : "log4cpp.properties";
8  std::ifstream in(inFile.c_str());
9 
10  properties.load(in);
11  properties.save(std::cout);
12  return 0;
13 }
14 
virtual void save(std::ostream &out)
Definition: Properties.cpp:89
int main(int argc, char **argv)
virtual void load(std::istream &in)
Definition: Properties.cpp:21


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17