37 #ifndef OBJECTS_GENERAL_USER_FIELD_HPP
38 #define OBJECTS_GENERAL_USER_FIELD_HPP
95 int GetInt(
void)
const;
96 Int8 GetInt8(
void)
const;
97 TGi GetGi(
void)
const;
98 bool GetBool(
void)
const;
99 double GetDouble(
void)
const;
100 const string& GetString(
void)
const;
107 #ifdef NCBI_STRICT_GI
133 void SetNumFromSize(
size_t value);
139 const string& delim =
".",
145 const string& delim =
".",
153 void Join(ostream & out_name_strm,
const string & delim =
".")
const;
156 m_FieldNameChain.push_back(
str);
172 fFieldMapFlags_ExcludeThis = (1<<0)
198 const string& delim =
".",
204 const string& delim =
".",
208 bool HasField(
const string&
str,
209 const string& delim =
".",
214 bool DeleteField(
const string&
str,
215 const string& delim =
".",
317 #ifdef NCBI_STRICT_GI
356 int CUser_field::GetValue<int>(
void)
const
364 Int8 CUser_field::GetValue<Int8>(
void)
const
372 double CUser_field::GetValue<double>(
void)
const
380 bool CUser_field::GetValue<bool>(
void)
const
388 string CUser_field::GetValue<string>(
void)
const
401 #ifdef NCBI_STRICT_GI
404 TGi CUser_field::GetValue<TGi>(
void)
const
CUser_field(const CUser_field &value)
EFieldMapFlags
Flags that affect behavior of TMapFieldNameToRef functions.
map< SFieldNameChain, CConstRef< CUser_field > > TMapFieldNameToRef
Maps field names like the input for GetFieldRef to the user-field.
CUser_field & SetString(const char *value)
int GetInt(void) const
get value
@ eParse_String
Add string even if all numbers.
CUser_field & SetGi(TGi gi)
CUser_field & operator=(const CUser_field &value)
CUser_field & SetInt8(Int8 value)
CUser_field & SetValue(int value)
set a data field to a given value Int8 and TGi values can be stored into 'str' field if the value doe...
const string & GetString(void) const
Type GetValue(void) const
double GetDouble(void) const
CUser_field & SetBool(bool value)
CUser_field & AddField(const string &label, const vector< string > &value)
int TFieldMapFlags
holds bitwise OR of "EFieldMapFlags"
CUser_field & SetInt(int value)
set value
CUser_field & SetDouble(double value)
bool operator<(const CEquivRange &A, const CEquivRange &B)
static const char * str(char *buf, int n)
void SetField(objects::CUser_object &user, const string &field_name, const string &val)
#define GI_FROM(T, value)
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ECase
Which type of string comparison.
@ eCase
Case sensitive compare.
#define NCBI_GENERAL_EXPORT
static const char label[]
const TStr & GetStr(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
TInt & SetInt(void)
Select the variant.
TBool GetBool(void) const
Get the variant data.
TData & SetData(void)
Assign a value to Data data member.
TStr & SetStr(void)
Select the variant.
TInt GetInt(void) const
Get the variant data.
TReal & SetReal(void)
Select the variant.
TReal GetReal(void) const
Get the variant data.
TBool & SetBool(void)
Select the variant.
CNcbiMatrix< T > & operator+=(CNcbiMatrix< T > &, const CNcbiMatrix< U > &)
global addition: matrix += matrix
const GenericPointer< typename T::ValueType > T2 value
For functions that don't use delims, we instead use a chain of names.
TFieldNameChainUnderlying m_FieldNameChain
vector< CTempStringEx > TFieldNameChainUnderlying