OpenSceneGraph
Public Types | Public Member Functions | Protected Attributes | List of all members
osgDB::ReaderWriter::WriteResult Class Reference

Public Types

enum  WriteStatus { NOT_IMPLEMENTED, FILE_NOT_HANDLED, ERROR_IN_WRITING_FILE, FILE_SAVED }
 

Public Member Functions

 WriteResult (WriteStatus status=FILE_NOT_HANDLED)
 
 WriteResult (const std::string &m)
 
 WriteResult (const WriteResult &rr)
 
WriteResultoperator= (const WriteResult &rr)
 
bool operator< (const WriteResult &rhs) const
 
std::string & message ()
 
const std::string & message () const
 
std::string statusMessage () const
 Report the WriteResult's status, and message (if any). Useful for reporting of errors to users. More...
 
WriteStatus status () const
 
bool success () const
 
bool error () const
 
bool notHandled () const
 

Protected Attributes

WriteStatus _status
 
std::string _message
 

Member Enumeration Documentation

◆ WriteStatus

Enumerator
NOT_IMPLEMENTED 

write*() method not implemented in concrete ReaderWriter.

FILE_NOT_HANDLED 
ERROR_IN_WRITING_FILE 
FILE_SAVED 

Constructor & Destructor Documentation

◆ WriteResult() [1/3]

osgDB::ReaderWriter::WriteResult::WriteResult ( WriteStatus  status = FILE_NOT_HANDLED)
inline

◆ WriteResult() [2/3]

osgDB::ReaderWriter::WriteResult::WriteResult ( const std::string &  m)
inline

◆ WriteResult() [3/3]

osgDB::ReaderWriter::WriteResult::WriteResult ( const WriteResult rr)
inline

Member Function Documentation

◆ error()

bool osgDB::ReaderWriter::WriteResult::error ( ) const
inline

◆ message() [1/2]

std::string& osgDB::ReaderWriter::WriteResult::message ( )
inline

◆ message() [2/2]

const std::string& osgDB::ReaderWriter::WriteResult::message ( ) const
inline

◆ notHandled()

bool osgDB::ReaderWriter::WriteResult::notHandled ( ) const
inline

◆ operator<()

bool osgDB::ReaderWriter::WriteResult::operator< ( const WriteResult rhs) const
inline

References _status.

◆ operator=()

WriteResult& osgDB::ReaderWriter::WriteResult::operator= ( const WriteResult rr)
inline

References _message, and _status.

◆ status()

WriteStatus osgDB::ReaderWriter::WriteResult::status ( ) const
inline

◆ statusMessage()

std::string osgDB::ReaderWriter::WriteResult::statusMessage ( ) const

Report the WriteResult's status, and message (if any). Useful for reporting of errors to users.

◆ success()

bool osgDB::ReaderWriter::WriteResult::success ( ) const
inline

Member Data Documentation

◆ _message

std::string osgDB::ReaderWriter::WriteResult::_message
protected

Referenced by operator=().

◆ _status

WriteStatus osgDB::ReaderWriter::WriteResult::_status
protected

Referenced by operator<(), and operator=().


The documentation for this class was generated from the following file: