Apache Log4cxx
Version 1.7.0
Toggle main menu visibility
Loading...
Searching...
No Matches
pool.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_HELPERS_POOL_H
19
#define _LOG4CXX_HELPERS_POOL_H
20
21
#include <log4cxx/log4cxx.h>
22
#include <string>
23
24
extern
"C"
{
25
struct
apr_pool_t;
26
}
27
28
namespace
LOG4CXX_NS
29
{
30
namespace
helpers
31
{
32
class
LOG4CXX_EXPORT
Pool
33
{
34
public
:
35
Pool
();
36
Pool
(apr_pool_t*
pool
,
bool
release
);
37
~Pool
();
38
39
apr_pool_t*
getAPRPool
();
40
apr_pool_t*
create
();
41
void
*
palloc
(
size_t
length);
42
char
*
pstralloc
(
size_t
length);
43
char
*
itoa
(
int
n);
44
char
*
pstrndup
(
const
char
* s,
size_t
len);
45
char
*
pstrdup
(
const
char
* s);
46
char
*
pstrdup
(
const
std::string&);
47
48
protected
:
49
apr_pool_t*
pool
;
50
const
bool
release
;
51
52
private
:
53
Pool
(
const
LOG4CXX_NS::helpers::Pool&);
54
Pool
& operator=(
const
Pool
&);
55
void
setPool();
56
};
57
}
// namespace helpers
58
}
// namespace log4cxx
59
60
#endif
//_LOG4CXX_HELPERS_POOL_H
log4cxx::helpers::Pool::pstrndup
char * pstrndup(const char *s, size_t len)
log4cxx::helpers::Pool::pstralloc
char * pstralloc(size_t length)
log4cxx::helpers::Pool::pool
apr_pool_t * pool
Definition
pool.h:49
log4cxx::helpers::Pool::getAPRPool
apr_pool_t * getAPRPool()
log4cxx::helpers::Pool::palloc
void * palloc(size_t length)
log4cxx::helpers::Pool::itoa
char * itoa(int n)
log4cxx::helpers::Pool::~Pool
~Pool()
log4cxx::helpers::Pool::create
apr_pool_t * create()
log4cxx::helpers::Pool::pstrdup
char * pstrdup(const std::string &)
log4cxx::helpers::Pool::release
const bool release
Definition
pool.h:50
log4cxx::helpers::Pool::Pool
Pool(apr_pool_t *pool, bool release)
log4cxx::helpers::Pool::pstrdup
char * pstrdup(const char *s)
log4cxx::helpers::Pool::Pool
Pool()
src
main
include
log4cxx
helpers
pool.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
.