15.7.8 open

bool open(const char        *name)
bool open(const std::string &name)
bool open(unsigned char     *buffer, oefpos_t len)

Opens the input stream with data from the specified sources. Passing a name parameter will result in invocation of a protected virtual method to appropriate handle the specified input source. Passing a pointer to a character buffer along with the buffer's size will result in the stream wrapping the buffer and using that as the stream data source. Returns whether or not data can now be read from the stream.