A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/hooks__write__object_8cpp_source.html below:

NCBI C++ ToolKit: src/sample/app/serial/hooks_write_object.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

34 int main

(

int

argc,

char

** argv)

virtual void WriteObject(CObjectOStream &out, const CConstObjectInfo &passed_info)

This method will be called at approriate time when the object of requested type is to be written.

Write hook for a standalone object.

std::ofstream out("events_result.xml")

main entry point for tests

@ eSerial_StdWhenStd

use std when filename is "stdin"/"stdout"

@ eSerial_AsnText

ASN.1 text.

void DefaultWrite(CObjectOStream &out, const CConstObjectInfo &object)

static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)

Create serial object writer and attach it to an output stream.

TTypeInfo GetTypeInfo(void) const

void SetLocalWriteHook(CObjectOStream &stream, CWriteObjectHook *hook) const

Set local (for the specified stream) write hook.

void SetYear(TYear value)

Assign a value to Year data member.

void SetMonth(TMonth value)

Assign a value to Month data member.

TStd & SetStd(void)

Select the variant.

int main(int argc, char **argv)

USING_SCOPE(ncbi::objects)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4