serialobject_Base.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: serialobject_Base.cpp,v $
- * PRODUCTION Revision 1000.2 2004/06/01 19:44:48 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.11
- * PRODUCTION
- * ===========================================================================
- */
- #include <ncbi_pch.hpp>
- #include "serialobject.hpp"
- #include <serial/serialbase.hpp>
- #include <serial/serialimpl.hpp>
- #include <serial/serialasn.hpp>
- #if HAVE_NCBI_C
- # include <asn.h>
- # include "twebenv.h"
- #else
- # include "webenv/Web_Env.hpp"
- #endif
- CTestSerialObject::CTestSerialObject(void)
- : m_HaveName(false), m_NamePtr(0), m_Size(0), m_Next(0), m_WebEnv(0)
- {
- }
- CTestSerialObject::~CTestSerialObject(void)
- {
- }
- BEGIN_CLASS_INFO(CTestSerialObject)
- {
- ADD_STD_MEMBER(m_Name);
- ADD_STD_MEMBER(m_HaveName);
- ADD_MEMBER(m_NamePtr, POINTER, (STD, (string)))->SetOptional();
- ADD_STD_MEMBER(m_Size);
- ADD_MEMBER(m_Attributes, STL_list, (STD, (string)));
- ADD_MEMBER(m_Data, STL_CHAR_vector, (char));
- ADD_MEMBER(m_Offsets, STL_vector, (STD, (short)));
- ADD_MEMBER(m_Names, STL_map, (STD, (long), STD, (string)));
- ADD_MEMBER(m_Next, POINTER, (CLASS, (CTestSerialObject)))->SetOptional();
- #if HAVE_NCBI_C
- ADD_NAMED_OLD_ASN_MEMBER("m_WebEnv", m_WebEnv, "Web-Env", WebEnv)->SetOptional();
- #else
- ADD_MEMBER(m_WebEnv, POINTER, (CLASS, (CWeb_Env)))->SetOptional();
- #endif
- ADD_SUB_CLASS(CTestSerialObject2);
- }
- END_CLASS_INFO
- CTestSerialObject2::CTestSerialObject2(void)
- {
- }
- BEGIN_DERIVED_CLASS_INFO(CTestSerialObject2, CTestSerialObject)
- {
- ADD_STD_MEMBER(m_Name2);
- }
- END_DERIVED_CLASS_INFO