diff options
Diffstat (limited to 'ACE/protocols/ace/TMCast/Protocol.cpp')
-rw-r--r-- | ACE/protocols/ace/TMCast/Protocol.cpp | 30 |
1 files changed, 30 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..14991207edd --- /dev/null +++ b/ACE/protocols/ace/TMCast/Protocol.cpp @@ -0,0 +1,30 @@ +// $Id$ +// author : Boris Kolpackov <boris@dre.vanderbilt.edu> + +#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) << "}"; + } + */ + } +} |