coi.SetPrimitiveValueInt4(2001);
58coi.
FindClassMember(
"year").GetMember().SetPrimitiveValueInt4(2001);
69 int main(
intargc,
char** argv)
virtual void WriteClassMember(CObjectOStream &out, const CConstObjectInfoMI &passed_info)
Write hook for data member of a containing object (eg, SEQUENCE)
std::ofstream out("events_result.xml")
main entry point for tests
size_t TMemberIndex
Type used for indexing class members and choice variants.
EPrimitiveValueType
Primitive value type.
@ eSerial_StdWhenStd
use std when filename is "stdin"/"stdout"
@ eSerial_AsnText
ASN.1 text.
void DefaultWrite(CObjectOStream &out, const CConstObjectInfo &object)
TMemberIndex GetMemberIndex(void) const
Get index of the member in the class.
const CMemberInfo * GetMemberInfo(void) const
CObjectTypeInfo GetMemberType(void) const
Get data type information.
CMemberIterator FindMember(const string &memberName) const
Find class member by its name.
static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)
Create serial object writer and attach it to an output stream.
const CConstObjectInfo & GetClassObject(void) const
Get containing class data.
CObjectTypeInfo GetClassType(void) const
Get containing class type.
CMemberIterator FindClassMember(const string &memberName) const
Find class member by its name.
TTypeInfo GetTypeInfo(void) const
CConstObjectInfo GetMember(void) const
Get class member data.
void CustomWrite(CObjectOStream &out, const CConstObjectInfoMI &member, const CConstObjectInfo &custom_object)
EPrimitiveValueType GetPrimitiveValueType(void) const
Get type of primitive value.
bool IsPrimitiveValueSigned(void) const
Is primitive value signed.
void SetLocalWriteHook(CObjectOStream &stream, CWriteClassMemberHook *hook) const
int32_t Int4
4-byte (32-bit) signed integer
size_t GetSize(void) const
Get size of data object in memory (like sizeof in C)
void SetYear(TYear value)
Assign a value to Year data member.
TStd & SetStd(void)
Select the variant.
int main(int argc, char **argv)
USING_SCOPE(ncbi::objects)
CRef< objects::CObjectManager > om
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