47 #ifndef __Teko_RequestMesg_hpp__
48 #define __Teko_RequestMesg_hpp__
53 #include "Teuchos_RCP.hpp"
54 #include "Teuchos_ParameterList.hpp"
67 explicit RequestMesg(
const std::string & name,
unsigned int tag=0)
68 : name_(name), tag_(tag) {}
76 explicit RequestMesg(
const Teuchos::RCP<const Teuchos::ParameterList> & pl)
79 fromParameterList(*paramList_);
83 virtual ~RequestMesg() {}
86 std::string getName()
const
90 unsigned int getTag()
const
94 const Teuchos::RCP<const Teuchos::ParameterList> getParameterList()
const
95 {
return paramList_.getConst(); }
99 void fromParameterList(
const Teuchos::ParameterList & pl)
101 name_ =
"Parameter List";
103 if(pl.isParameter(
"Name"))
104 name_ = pl.get<std::string>(
"Name");
105 if(pl.isParameter(
"Tag"))
106 tag_ = pl.get<
unsigned int>(
"Tag");
111 Teuchos::RCP<const Teuchos::ParameterList> paramList_;
115 inline std::ostream & operator<<(std::ostream & os,
const Teko::RequestMesg & rm)
117 os <<
"RequestMesg <"
118 <<
"name = \"" << rm.getName() <<
"\", "
119 <<
"tag = " << rm.getTag() <<
">";