Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Options.h
Go to the documentation of this file.
1 #ifndef QPID_LOG_OPTIONS_H
2 #define QPID_LOG_OPTIONS_H
3 
4 /*
5  *
6  * Copyright (c) 2006 The Apache Software Foundation
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21 #include "qpid/Options.h"
23 #include "qpid/log/SinkOptions.h"
24 #include <iosfwd>
25 #include <memory>
26 
27 namespace qpid {
28 namespace log {
29 
31 struct Options : public qpid::Options {
33  QPID_COMMON_EXTERN Options(const std::string& argv0_=std::string(),
34  const std::string& name_="Logging options");
35  QPID_COMMON_EXTERN Options(const Options &);
36 
37  QPID_COMMON_EXTERN Options& operator=(const Options&);
38 
39  std::string argv0;
40  std::string name;
41  std::vector<std::string> selectors;
42  std::vector<std::string> deselectors;
43  bool time, level, thread, source, function, hiresTs, category;
44  bool trace;
45  std::string prefix;
46  std::auto_ptr<SinkOptions> sinkOptions;
47 };
48 
49 }} // namespace qpid::log
50 
51 #endif
std::string prefix
Definition: Options.h:45
Options(const std::string &argv0_=std::string(), const std::string &name_="Logging options")
Pass argv[0] for use in syslog output.
std::vector< std::string > selectors
Definition: Options.h:41
std::string name
Definition: Options.h:40
std::auto_ptr< SinkOptions > sinkOptions
Definition: Options.h:46
std::vector< std::string > deselectors
Definition: Options.h:42
std::string argv0
Definition: Options.h:39
Options & operator=(const Options &)
Base class for options.
Definition: Options.h:145
#define QPID_COMMON_EXTERN
Logging options for config parser.
Definition: Options.h:31

Qpid C++ API Reference
Generated on Thu Aug 18 2016 for Qpid C++ Client API by doxygen 1.8.5