summaryrefslogtreecommitdiff
path: root/ACE/ace/Log_Record.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2006-10-11 15:45:18 +0000
committerSteve Huston <shuston@riverace.com>2006-10-11 15:45:18 +0000
commit5420b27967dedc3d5cbd013c8f7fc9f7118d6ce7 (patch)
tree1a34232bc876bad13c3f2ca9cb8c577c4b6e2f12 /ACE/ace/Log_Record.h
parent49b0d809e6a82001f305cf45097b68bd1565fe28 (diff)
downloadATCD-5420b27967dedc3d5cbd013c8f7fc9f7118d6ce7.tar.gz
ChangeLogTag:Wed Oct 11 15:24:04 UTC 2006 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Log_Record.h')
-rw-r--r--ACE/ace/Log_Record.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/ACE/ace/Log_Record.h b/ACE/ace/Log_Record.h
index 1ff5d35a43e..36bda6f89ac 100644
--- a/ACE/ace/Log_Record.h
+++ b/ACE/ace/Log_Record.h
@@ -151,11 +151,10 @@ public:
/// Get the message data of the <Log_Record>.
const ACE_TCHAR *msg_data (void) const;
- /// Set the message data pointer
- void set_msg_data_ptr (ACE_TCHAR *data);
-
- /// Set the message data of the <Log_Record>.
- void msg_data (const ACE_TCHAR *data);
+ /// Set the message data of the record. If @a data is longer than the
+ /// current msg_data_ buffer, a new msg_data_ buffer is allocated to
+ /// fit. If such a reallocation faisl, this method returns -1, else 0.
+ int msg_data (const ACE_TCHAR *data);
/// Get the size of the message data of the <Log_Record>, including
/// a byte for the NUL.
@@ -190,8 +189,8 @@ private:
ACE_UINT32 pid_;
/// Logging record data
- ACE_TCHAR *msg_data_; // Add one for NUL-terminator.
-
+ ACE_TCHAR *msg_data_; // Heap-allocated text message area
+ size_t msg_data_size_; // Allocated size of msg_data_ in ACE_TCHARs
};
// Forward decls.