00001 /* capture.cc 00002 */ 00003 #include "osl/rating/feature/capture.h" 00004 #include <sstream> 00005 00006 const std::string osl::rating::Capture::name(int first, int /*last*/) 00007 { 00008 std::ostringstream os; 00009 os << "("; 00010 if (first == -INF) 00011 os << "-inf"; 00012 else 00013 os << first; 00014 os << " <= )"; 00015 return os.str(); 00016 } 00017 00018 osl::rating::DropCaptured::DropCaptured(Ptype p) 00019 : Feature(Ptype_Table.getCsaName(p)), ptype(p) 00020 { 00021 } 00022 00023 /* ------------------------------------------------------------------------- */