2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2005-01-20 23:22:22 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2008-08-06 18:36:30 +00:00
|
|
|
// Copyright (C) 2008 University of California
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
2005-01-20 23:22:22 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2005-01-20 23:22:22 +00:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
// flags determining what is written to standard out.
|
|
|
|
// (errors go to stderr)
|
|
|
|
//
|
2007-08-16 17:33:41 +00:00
|
|
|
// NOTE: all writes to stdout should have an if (log_flags.*) {} around them.
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
|
|
|
|
2002-10-06 00:45:29 +00:00
|
|
|
#ifndef _LOGFLAGS_H_
|
|
|
|
#define _LOGFLAGS_H_
|
|
|
|
|
2007-10-20 16:10:57 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
2004-03-04 11:41:43 +00:00
|
|
|
#ifndef _WIN32
|
2009-02-26 00:23:23 +00:00
|
|
|
#include <cstdio>
|
2004-03-04 11:41:43 +00:00
|
|
|
#endif
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2010-10-07 21:41:31 +00:00
|
|
|
#include "file_names.h"
|
2011-04-25 03:18:26 +00:00
|
|
|
#include "cc_config.h"
|
2010-10-07 21:41:31 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
extern LOG_FLAGS log_flags;
|
2006-05-21 21:11:28 +00:00
|
|
|
extern CONFIG config;
|
2010-10-07 21:41:31 +00:00
|
|
|
extern int read_config_file(bool init, const char* fname=CONFIG_FILE);
|
2002-10-06 00:45:29 +00:00
|
|
|
|
2002-10-09 18:48:26 +00:00
|
|
|
#endif
|