diff options
Diffstat (limited to 'ACE/protocols/ace/TMCast/Protocol.cpp')
-rw-r--r-- | ACE/protocols/ace/TMCast/Protocol.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/protocols/ace/TMCast/Protocol.cpp b/ACE/protocols/ace/TMCast/Protocol.cpp new file mode 100644 index 00000000000..ea4c6b39020 --- /dev/null +++ b/ACE/protocols/ace/TMCast/Protocol.cpp @@ -0,0 +1,31 @@ +// file : ACE_TMCast/Protocol.cpp +// author : Boris Kolpackov <boris@dre.vanderbilt.edu> +// cvs-id : $Id$ + +#include "Protocol.hpp" + +namespace ACE_TMCast +{ + namespace Protocol + { + /* + namespace + { + char const* labels[] = { + "NONE", "BEGIN", "COMMIT", "ABORT", "COMMITED", "ABORTED"}; + } + + std::string + tslabel (Protocol::TransactionStatus s) + { + return labels[s]; + } + + std::ostream& + operator << (std::ostream& o, Transaction const& t) + { + return o << "{" << t.id << "; " << tslabel (t.status) << "}"; + } + */ + } +} |