Apache Log4cxx: pool.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18#ifndef _LOG4CXX_HELPERS_POOL_H

19#define _LOG4CXX_HELPERS_POOL_H

20

21#include <log4cxx/log4cxx.h>

22#include

23

24extern "C" {

25 struct apr_pool_t;

26}

27

28namespace LOG4CXX_NS

29{

30namespace helpers

31{

32class LOG4CXX_EXPORT Pool

33{

34 public:

38

44 char* pstrndup(const char* s, size_t len);

46 char* pstrdup(const std::string&);

47

48 protected:

51

52 private:

53 Pool(const LOG4CXX_NS::helpers::Pool&);

55 void setPool();

56};

57}

58}

59

60#endif

char * pstrndup(const char *s, size_t len)

char * pstralloc(size_t length)

apr_pool_t * pool

Definition pool.h:49

apr_pool_t * getAPRPool()

void * palloc(size_t length)

char * pstrdup(const std::string &)

const bool release

Definition pool.h:50

Pool(apr_pool_t *pool, bool release)

char * pstrdup(const char *s)