CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EnquingPolicyTag.cc
Go to the documentation of this file.
1 // $Id: EnquingPolicyTag.cc,v 1.3 2009/07/20 13:07:27 mommsen Exp $
3 
5 
6 using namespace stor;
7 
8 std::ostream& enquing_policy::operator << ( std::ostream& os,
9  const enquing_policy::PolicyTag& ptag )
10 {
11  switch( ptag )
12  {
14  os << "Discard New";
15  break;
17  os << "Discard Old";
18  break;
20  os << "Fail If Full";
21  break;
23  os << "Max";
24  break;
25  default:
26  os << "BUG: Undefined Policy";
27  }
28  return os;
29 }
std::ostream & operator<<(std::ostream &os, const enquing_policy::PolicyTag &ptag)