52 in->ReadObject(&annot, CSeq_annot::GetTypeInfo());
57 in->ReadObject(passed_info);
67 int main(
int argc,
char** argv)
virtual void ReadObject(CObjectIStream &strm, const CObjectInfo &passed_info)
This method will be called at approriate time when the object of requested type is to be read.
Read hook for a standalone object.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
std::ofstream out("events_result.xml")
main entry point for tests
#define MSerial_AsnText
I/O stream manipulators –.
@ eSerial_StdWhenStd
use std when filename is "stdin"/"stdout"
@ eSerial_AsnText
ASN.1 text.
void DefaultRead(CObjectIStream &in, const CObjectInfo &object)
Default read.
void SetLocalReadHook(CObjectIStream &stream, CReadObjectHook *hook) const
Set local (for the specified stream) read hook.
static CObjectIStream * Create(ESerialDataFormat format)
Create serial object reader.
const string & GetStackPath(void) const
static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)
Create serial object writer and attach it to an output stream.
TTypeInfo GetTypeInfo(void) const
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
void DefaultSkip(CObjectIStream &in, const CObjectTypeInfo &object)
Default skip.
virtual void StartDelayBuffer(void)
virtual CRef< CByteSource > EndDelayBuffer(void)
void CopyObject(TTypeInfo type)
Copy object, omitting file header both in input and output streams.
int main(int argc, char **argv)
USING_SCOPE(ncbi::objects)
std::istream & in(std::istream &in_, double &x_)