Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
tests
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
log4cpp::Properties::save
virtual void save(std::ostream &out)
Definition:
Properties.cpp:89
Properties.hh
main
int main(int argc, char **argv)
Definition:
testProperties.cpp:5
log4cpp::Properties
Definition:
Properties.hh:19
log4cpp::Properties::load
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