Apache Log4cxx
Version 1.7.0
Toggle main menu visibility
Loading...
Searching...
No Matches
propertysetter.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _LOG4CXX_CONFIG_PROPERTYSETTER_H
19
#define _LOG4CXX_CONFIG_PROPERTYSETTER_H
20
21
#include <
log4cxx/logstring.h
>
22
#include <
log4cxx/helpers/object.h
>
23
24
namespace
LOG4CXX_NS
25
{
26
namespace
helpers
27
{
28
class
Object
;
29
LOG4CXX_PTR_DEF
(
Object
);
30
}
31
}
32
33
// Instantiate template pointer type passed as parameter
34
LOG4CXX_INSTANTIATE_EXPORTED_PTR
(LOG4CXX_NS::helpers::Object);
35
36
namespace
LOG4CXX_NS
37
{
38
namespace
helpers
39
{
40
class
Properties;
41
class
Pool;
42
}
43
44
namespace
config
45
{
62
class
LOG4CXX_EXPORT
PropertySetter
63
{
64
protected
:
65
helpers::ObjectPtr
obj
;
66
67
public
:
74
PropertySetter
(
const
helpers::ObjectPtr&
obj
);
75
86
static
void
setProperties
(
const
helpers::ObjectPtr&
obj
,
87
helpers::Properties
& properties,
88
const
LogString
& prefix,
89
LOG4CXX_NS::helpers::Pool& p);
90
95
void
setProperties
(
helpers::Properties
& properties,
96
const
LogString
& prefix,
97
LOG4CXX_NS::helpers::Pool& p);
98
108
void
setProperty
(
const
LogString
& option,
109
const
LogString
& value,
110
LOG4CXX_NS::helpers::Pool& p);
111
112
void
activate
(LOG4CXX_NS::helpers::Pool& p);
113
};
// class PropertySetter
114
}
// namespace config;
115
}
// namespace log4cxx
116
117
#endif
//_LOG4CXX_CONFIG_PROPERTYSETTER_H
log4cxx::config::PropertySetter::activate
void activate(log4cxx::helpers::Pool &p)
log4cxx::config::PropertySetter::setProperty
void setProperty(const LogString &option, const LogString &value, log4cxx::helpers::Pool &p)
Set a property on this PropertySetter's Object.
log4cxx::config::PropertySetter::PropertySetter
PropertySetter(const helpers::ObjectPtr &obj)
Create a new PropertySetter for the specified Object.
log4cxx::config::PropertySetter::obj
helpers::ObjectPtr obj
Definition
propertysetter.h:65
log4cxx::config::PropertySetter::setProperties
static void setProperties(const helpers::ObjectPtr &obj, helpers::Properties &properties, const LogString &prefix, log4cxx::helpers::Pool &p)
Set the properties of an object passed as a parameter in one go.
log4cxx::config::PropertySetter::setProperties
void setProperties(helpers::Properties &properties, const LogString &prefix, log4cxx::helpers::Pool &p)
Set the properites for the object that match the prefix passed as parameter.
log4cxx::helpers::Object
base class for java-like objects.
Definition
object.h:102
log4cxx::helpers::Properties
Definition
properties.h:33
logstring.h
log4cxx::config
Definition
propertysetter.h:45
log4cxx::helpers
Definition
propertysetter.h:27
log4cxx::helpers::LOG4CXX_PTR_DEF
LOG4CXX_PTR_DEF(Object)
log4cxx::LogString
std::basic_string< logchar > LogString
Definition
logstring.h:60
object.h
LOG4CXX_INSTANTIATE_EXPORTED_PTR
LOG4CXX_INSTANTIATE_EXPORTED_PTR(log4cxx::helpers::Object)
src
main
include
log4cxx
config
propertysetter.h
Generated by
1.17.0 on
SITE_PUBLISHED_DATE
Copyright © 2017-2026
Apache Software Foundation
. Apache, Chainsaw, log4cxx, Log4j, Log4net, log4php and the Apache logo are
trademarks or registered trademarks
of The Apache Software Foundation.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Privacy Policy
.