Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / protocols / ace / TMCast / Protocol.cpp
blobe78c8fab6e3e2d60e7142eb6e7221e4f8fe5dc3c
1 // author : Boris Kolpackov <boris@dre.vanderbilt.edu>
3 #include "Protocol.hpp"
5 namespace ACE_TMCast
7 namespace Protocol
9 /*
10 namespace
12 char const* labels[] = {
13 "NONE", "BEGIN", "COMMIT", "ABORT", "COMMITED", "ABORTED"};
16 std::string
17 tslabel (Protocol::TransactionStatus s)
19 return labels[s];
22 std::ostream&
23 operator << (std::ostream& o, Transaction const& t)
25 return o << "{" << t.id << "; " << tslabel (t.status) << "}";