Class FieldCreate¶
Defined in File pvIntrospect.h
Nested Relationships¶
Nested Types¶
Class Documentation¶
-
class FieldCreate¶
This is a singleton class for creating introspection interfaces.
Public Functions
-
FieldBuilderPtr createFieldBuilder() const¶
Create a new instance of in-line
Fieldbuilder.- Returns
a new instance of a
FieldBuilder.
-
FieldBuilderPtr createFieldBuilder(StructureConstPtr S) const¶
Create a new instance of in-line
Fieldbuilder pre-initialized with and existing Structure- Returns
a new instance of a
FieldBuilder.
-
ScalarConstPtr createScalar(ScalarType scalarType) const¶
Create a
ScalarField.- Parameters
scalarType – The scalar type.
- Throws
IllegalArgumentException – if an illegal type is specified.
- Returns
a
Scalarinterface for the newly created object.
-
StructureConstPtr createStructure() const¶
Create a
Structurefield.- Returns
a
Structureinterface for the newly created object.
-
StructureConstPtr createStructure(StringArray const &fieldNames, FieldConstPtrArray const &fields) const¶
Create a
Structurefield.
-
StructureConstPtr createStructure(std::string const &id, StringArray const &fieldNames, FieldConstPtrArray const &fields) const¶
Create a
Structurefield with identification string.
-
UnionArrayConstPtr createUnionArray(UnionConstPtr const &punion) const¶
-
UnionArrayConstPtr createVariantUnionArray() const¶
Create a variant
UnionArray(aka any type) field.- Returns
a
UnionArrayinterface for the newly created object.
-
UnionConstPtr createVariantUnion() const¶
Create a variant
Union(aka any type) field.- Returns
a
Unioninterface for the newly created object.
-
UnionConstPtr createUnion(StringArray const &fieldNames, FieldConstPtrArray const &fields) const¶
Create a
Unionfield.
-
UnionConstPtr createUnion(std::string const &id, StringArray const &fieldNames, FieldConstPtrArray const &fields) const¶
Create a
Unionfield with identification string.
-
StructureConstPtr appendField(StructureConstPtr const &structure, std::string const &fieldName, FieldConstPtr const &field) const¶
Append a field to a structure.
- Parameters
structure – The structure to which the field is appended.
fieldName – The name of the field.
field – The field.
- Returns
a
Structureinterface for the newly created object.
-
StructureConstPtr appendFields(StructureConstPtr const &structure, StringArray const &fieldNames, FieldConstPtrArray const &fields) const¶
Append fields to a structure.
- Parameters
structure – The structure to which the fields appended.
fieldNames – The names of the fields.
fields – The fields.
- Returns
a
Structureinterface for the newly created object.
-
FieldConstPtr deserialize(ByteBuffer *buffer, DeserializableControl *control) const¶
Deserialize
Fieldinstance from given byte buffer.
Public Static Functions
-
static const FieldCreatePtr &getFieldCreate()¶
Friends
- friend struct detail::field_factory
-
struct Helper¶
Public Static Functions
-
FieldBuilderPtr createFieldBuilder() const¶