CollectionSchemaField Class Documentation
class CollectionSchemaFieldNamespace:datalogics_interface
Detailed Description
Allows for the creation of collection schema field objects.
Parameters that are part of a schema's field may be set.
Referenced by
Uses types
Constructor & Destructor Documentation
CollectionSchemaField
CollectionSchemaField(CollectionSchemaField && )Parameters
CollectionSchemaField
CollectionSchemaField(const std::string & field_id, SchemaFieldSubtype subtype)Parameters
field_id: const std::string &the schema field ID. The ID is used during creation and extraction of the schema field. It is the unique identifier of the schema field.
subtype: SchemaFieldSubtypethe schema field subtype. The subtypes are predefined. The value of this parameter must correspond to the one of the SchemaFieldSubtype enum values.
CCollectionSchemaField allows to create CollectionSchemaField object.
The constructor accepts identifier value and subtype required by the schema field.
~CollectionSchemaField
~CollectionSchemaField()Member Function Documentation
get_editable
bool get_editable()Returns:
boolwhether edit mode is allowed or not.
GetEditable allows to obtain information about edit mode of the current field.
get_id
std::string get_id()Returns:
std::stringthe unique field's id.
GetID allows to obtain the unique id with which schema field has been created.
get_index
int get_index()Returns:
intthe index of the field.
GetIndex allows to obtain field index.
get_name
std::string get_name()Returns:
std::stringthe field name.
GetName allows to obtain field name.
get_subtype
SchemaFieldSubtype get_subtype()Returns:
SchemaFieldSubtypefield subtype. One of the ShemaFieldSubtype enum values.
GetSubtype allows to obtain the field subtype.
get_visible
bool get_visible()Returns:
booltrue if current schema field is visible, false otherwise.
GetVisible allows to obtain information about filed visibility.
operator=
CollectionSchemaField & operator=(CollectionSchemaField && )Parameters
Returns:
CollectionSchemaField &set_editable
void set_editable(bool editable)Parameters
editable: boolpass true to allow to edit this field or false otherwise.
Returns:
voidSetEditable allows to change edit mode for shema field. Its value false by default.
set_index
void set_index(int index)Parameters
index: intfield index.
Returns:
voidSetIndex allows to set field index.
NOTE: the field indexes are zero-based in ascending order without gaps.
set_name
void set_name(const std::string & name)Parameters
name: const std::string &the new field name.
Returns:
voidSetName allows to change field name.
set_visible
void set_visible(bool visible)Parameters
visible: boolthe visibility flag.
Returns:
voidSetVisible allows to set field's default visibility. Its value true by default.