42 #ifndef __Teuchos_MatrixMarket_Banner_hpp
43 #define __Teuchos_MatrixMarket_Banner_hpp
52 namespace MatrixMarket {
67 class TEUCHOSNUMERICS_LIB_DLL_EXPORT
Banner {
77 Banner (
const std::string& line,
const bool tolerant=
false);
86 const std::string&
objectType()
const {
return objectType_; }
93 const std::string&
matrixType()
const {
return matrixType_; }
99 const std::string&
dataType()
const {
return dataType_; }
122 const std::string&
symmType()
const {
return symmType_; }
125 static std::string validateObjectType (
const std::string& objectType,
const bool tolerant=
false);
126 static std::string validateMatrixType (
const std::string& matrixType,
const bool tolerant=
false);
127 static std::string validateDataType (
const std::string& dataType,
const bool tolerant=
false);
128 static std::string validateSymmType (
const std::string& symmType,
const bool tolerant=
false);
131 void setDefaults (
const int howMany);
133 std::string objectType_, matrixType_, dataType_, symmType_;
151 TEUCHOSNUMERICS_LIB_DLL_EXPORT std::ostream& operator<< (std::ostream& out,
const Banner& banner);
156 #endif // __Teuchos_MatrixMarket_Banner_hpp
const std::string & matrixType() const
Storage type of the matrix.
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
const std::string & dataType() const
Data type of matrix entries.
const std::string & symmType() const
Symmetric storage type.
const std::string & objectType() const
The object type.
Parse a Matrix Market banner line.