41 #ifndef OBJECTS_GENERAL_USER_OBJECT_BASE_HPP
42 #define OBJECTS_GENERAL_USER_OBJECT_BASE_HPP
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
97 typedef vector< CRef< CUser_field > >
TData;
119 bool IsSetClass(
void)
const;
126 bool CanGetClass(
void)
const;
129 void ResetClass(
void);
135 const TClass& GetClass(
void)
const;
158 bool IsSetType(
void)
const;
165 bool CanGetType(
void)
const;
168 void ResetType(
void);
174 const TType& GetType(
void)
const;
186 TType& SetType(
void);
196 bool IsSetData(
void)
const;
203 bool CanGetData(
void)
const;
206 void ResetData(
void);
212 const TData& GetData(
void)
const;
218 TData& SetData(
void);
221 virtual void Reset(
void);
276 m_Class = std::forward<CUser_object_Base::TClass>(
value);
Base class for all serializable objects.
**** User-object ********************************************** * * a general object for a user defin...
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GENERAL_EXPORT
bool IsSetData(void) const
the object itself Check if a value has been assigned to Data data member.
bool CanGetType(void) const
Check if it is safe to call GetType method.
bool IsSetType(void) const
type of object within class Check if a value has been assigned to Type data member.
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
bool CanGetData(void) const
Check if it is safe to call GetData method.
TClass & SetClass(void)
Assign a value to Class data member.
bool IsSetClass(void) const
endeavor which designed this object Check if a value has been assigned to Class data member.
CUser_object_Base(const CUser_object_Base &)
const TClass & GetClass(void) const
Get the Class member data.
TType & SetType(void)
Assign a value to Type data member.
DECLARE_INTERNAL_TYPE_INFO()
TData & SetData(void)
Assign a value to Data data member.
Tparent::CMemberIndex< E_memberIndex, 4 > TmemberIndex
const TData & GetData(void) const
Get the Data member data.
CUser_object_Base & operator=(const CUser_object_Base &)
vector< CRef< CUser_field > > m_Data
void ResetType(void)
Reset Type data member.
const TType & GetType(void) const
Get the Type member data.
vector< CRef< CUser_field > > TData
const GenericPointer< typename T::ValueType > T2 value