libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
|
The SgfcMessageStream class captures the stream of messages that is generated by SGFC. More...
#include <SgfcMessageStream.h>
Public Member Functions | |
SgfcMessageStream () | |
Initializes a newly constructed SgfcMessageStream object. The object immediately starts capturing the SGFC message stream. | |
virtual | ~SgfcMessageStream () |
Destroys and cleans up the SgfcMessageStream object. | |
std::vector< std::shared_ptr< ISgfcMessage > > | GetMessagees () const |
Returns a collection of messages captured so far by the SgfcMessageStream object. The messages appear in the collection in the order in which they are generated by SGFC. The collection is empty if SGFC has not generated any messages. | |
The SgfcMessageStream class captures the stream of messages that is generated by SGFC.
SgfcMessageStream starts to capture the stream of SGFC messages immediately upon construction. Capturing stops only when the SgfcMessageStream object is destroyed. A client can access the messages captured so far during the lifetime of the SgfcMessageStream object by invoking its GetMessages() method.
Only one SgfcMessageStream can be active at any given time.
LibSgfcPlusPlus::SgfcMessageStream::SgfcMessageStream | ( | ) |
Initializes a newly constructed SgfcMessageStream object. The object immediately starts capturing the SGFC message stream.
std::logic_error | Is thrown if another SgfcMessageStream object already exists. |