Classes | |
| class | AppenderAttachableImpl |
| This Interface is for attaching Appenders to objects. More... | |
| class | LogLogUser |
| This class used to simplify the use of the LogLog class. More... | |
| class | LogLog |
| This class used to output log statements from within the log4cplus package. More... | |
| class | SharedObject |
| class | SharedObjectPtr |
| class | Properties |
| class | SocketBuffer |
| class | AbstractSocket |
| class | Socket |
| This class implements client sockets (also called just "sockets"). More... | |
| class | ServerSocket |
| This class implements server sockets. More... | |
| struct | ConvertIntegerToStringHelper |
| class | Time |
| This class represents a Epoch time with microsecond accuracy. More... | |
Typedefs | |
| typedef int | SOCKET_TYPE |
Enumerations | |
| enum | SocketState { ok, not_opened, bad_address, connection_failed, broken_pipe, invalid_access_mode, message_truncated } |
Functions | |
| LOG4CPLUS_EXPORT void | sleep (unsigned long secs) |
| LOG4CPLUS_EXPORT SOCKET_TYPE | openSocket (unsigned short port, SocketState &state) |
| LOG4CPLUS_EXPORT SOCKET_TYPE | connectSocket (const log4cplus::tstring &hostn, unsigned short port, SocketState &state) |
| LOG4CPLUS_EXPORT SOCKET_TYPE | acceptSocket (SOCKET_TYPE sock, SocketState &state) |
| LOG4CPLUS_EXPORT int | closeSocket (SOCKET_TYPE sock) |
| LOG4CPLUS_EXPORT long | read (SOCKET_TYPE sock, SocketBuffer &buffer) |
| LOG4CPLUS_EXPORT long | write (SOCKET_TYPE sock, const SocketBuffer &buffer) |
| LOG4CPLUS_EXPORT tstring | getHostname (bool fqdn) |
| LOG4CPLUS_EXPORT log4cplus::tstring | toUpper (const log4cplus::tstring &s) |
Returns s in upper case. | |
| LOG4CPLUS_EXPORT log4cplus::tstring | toLower (const log4cplus::tstring &s) |
Returns s in lower case. | |
| template<class StringType> | |
| void | tokenize (const StringType &s, typename StringType::value_type c, OFList< StringType > &result, bool collapseTokens=true) |
Tokenize s using c as the delimiter and put the resulting tokens in _result. | |
| template<class intType> | |
| void | convertIntegerToString (tstring &str, intType value) |
| template<class intType> | |
| tstring | convertIntegerToString (intType value) |
| LOG4CPLUS_EXPORT const log4cplus::helpers::Time | operator+ (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT const log4cplus::helpers::Time | operator- (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT const log4cplus::helpers::Time | operator/ (const log4cplus::helpers::Time &lhs, long rhs) |
| LOG4CPLUS_EXPORT const log4cplus::helpers::Time | operator * (const log4cplus::helpers::Time &lhs, long rhs) |
| LOG4CPLUS_EXPORT bool | operator< (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT bool | operator<= (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT bool | operator> (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT bool | operator>= (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT bool | operator== (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT bool | operator!= (const log4cplus::helpers::Time &lhs, const log4cplus::helpers::Time &rhs) |
| LOG4CPLUS_EXPORT SocketBuffer | convertToBuffer (const log4cplus::spi::InternalLoggingEvent &event, const log4cplus::tstring &serverName) |
| LOG4CPLUS_EXPORT log4cplus::spi::InternalLoggingEvent | readFromBuffer (SocketBuffer &buffer) |
| void log4cplus::helpers::tokenize | ( | const StringType & | s, | |
| typename StringType::value_type | c, | |||
| OFList< StringType > & | result, | |||
| bool | collapseTokens = true | |||
| ) | [inline] |
Tokenize s using c as the delimiter and put the resulting tokens in _result.
If collapseTokens is false, multiple adjacent delimiters will result in zero length tokens.
Example:
string s = // Set string with '.' as delimiters list<log4cplus::tstring> tokens; tokenize(s, '.', back_insert_iterator<list<string> >(tokens));
Definition at line 66 of file strhelp.h.
References OFList< T >::push_back().