28 #ifndef INCLUDED_BLPAPI_SCHEMA 29 #define INCLUDED_BLPAPI_SCHEMA 73 #ifndef INCLUDED_BLPAPI_CONSTANT 77 #ifndef INCLUDED_BLPAPI_DEFS 81 #ifndef INCLUDED_BLPAPI_EXCEPTION 85 #ifndef INCLUDED_BLPAPI_NAME 89 #ifndef INCLUDED_BLPAPI_STREAMPROXY 93 #ifndef INCLUDED_BLPAPI_TYPES 204 const char *nameString,
235 #ifndef INCLUDED_IOSFWD 237 #define INCLUDED_IOSFWD 276 class SchemaTypeDefinition;
421 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
606 std::ostream& stream,
int level = 0,
int spacesPerLevel = 4)
const;
710 if (alternateName == 0) {
713 return Name(alternateName);
717 std::ostream& stream,
int level,
int spacesPerLevel)
const 730 element.
print(stream, 0, -1);
786 const Name& elementName)
const 789 d_impl_p, 0, elementName.
impl())
795 const char *nameString)
const 798 d_impl_p, nameString, 0)
804 const Name& elementName)
const 808 d_impl_p, 0, elementName.
impl());
816 const char *nameString)
const 820 d_impl_p, nameString, 0);
856 std::ostream& stream,
int level,
int spacesPerLevel)
const 869 typeDef.
print(stream, 0, -1);
891 #endif // #ifdef __cplusplus 893 #endif // #ifndef INCLUDED_BLPAPI_SCHEMA int blpapi_SchemaTypeDefinition_isSimple(const blpapi_SchemaTypeDefinition_t *type)
SchemaElementDefinition getElementDefinition(const Name &name) const
Definition: blpapi_schema.h:803
blpapi_SchemaElementDefinition_t * blpapi_SchemaTypeDefinition_getElementDefinitionAt(const blpapi_SchemaTypeDefinition_t *type, size_t index)
int datatype() const
Definition: blpapi_schema.h:760
blpapi_SchemaTypeDefinition_t * blpapi_SchemaElementDefinition_type(const blpapi_SchemaElementDefinition_t *field)
int blpapi_SchemaTypeDefinition_isSimpleType(const blpapi_SchemaTypeDefinition_t *type)
bool isComplexType() const
Definition: blpapi_schema.h:839
size_t blpapi_SchemaTypeDefinition_numElementDefinitions(const blpapi_SchemaTypeDefinition_t *type)
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_schema.h:855
#define BLPAPI_ELEMENTDEFINITION_UNBOUNDED
Definition: blpapi_defs.h:114
Common definitions used by the library.
SchemaTypeDefinition(blpapi_SchemaTypeDefinition_t *handle)
Definition: blpapi_schema.h:752
void * userData() const
Definition: blpapi_schema.h:878
Definition: blpapi_abstractsession.h:187
#define BLPAPI_STATUS_ACTIVE
Definition: blpapi_defs.h:98
blpapi_SchemaElementDefinition_t * blpapi_SchemaTypeDefinition_getElementDefinition(const blpapi_SchemaTypeDefinition_t *type, const char *nameString, const blpapi_Name_t *name)
int blpapi_SchemaTypeDefinition_isComplex(const blpapi_SchemaTypeDefinition_t *type)
size_t blpapi_SchemaElementDefinition_numAlternateNames(const blpapi_SchemaElementDefinition_t *field)
void blpapi_SchemaElementDefinition_setUserData(blpapi_SchemaElementDefinition_t *field, void *userdata)
Definition: blpapi_name.h:150
Definition: blpapi_constant.h:396
const SchemaTypeDefinition typeDefinition() const
Definition: blpapi_schema.h:686
#define BLPAPI_STATUS_INACTIVE
Definition: blpapi_defs.h:100
Name name() const
Definition: blpapi_schema.h:670
const char * blpapi_SchemaTypeDefinition_description(const blpapi_SchemaTypeDefinition_t *type)
bool isSimpleType() const
Definition: blpapi_schema.h:844
blpapi_Name_t * blpapi_SchemaElementDefinition_getAlternateName(const blpapi_SchemaElementDefinition_t *field, size_t index)
#define BLPAPI_STATUS_DEPRECATED
Definition: blpapi_defs.h:99
blpapi_Name_t * impl() const
Definition: blpapi_name.h:403
struct blpapi_Name blpapi_Name_t
Definition: blpapi_types.h:154
int blpapi_SchemaTypeDefinition_isEnumerationType(const blpapi_SchemaTypeDefinition_t *type)
std::ostream & print(std::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition: blpapi_schema.h:716
const ConstantList enumeration() const
Definition: blpapi_schema.h:883
Definition: blpapi_schema.h:327
size_t blpapi_SchemaElementDefinition_minValues(const blpapi_SchemaElementDefinition_t *field)
Provide a representation for schema-level enumeration constants.
int(* blpapi_StreamWriter_t)(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:53
size_t numElementDefinitions() const
Definition: blpapi_schema.h:780
Value
Definition: blpapi_schema.h:259
int status() const
Definition: blpapi_schema.h:680
int blpapi_SchemaTypeDefinition_isComplexType(const blpapi_SchemaTypeDefinition_t *type)
#define BLPAPI_ERROR_ITEM_NOT_FOUND
Definition: blpapi_error.h:78
~SchemaTypeDefinition()
Definition: blpapi_schema.h:758
void * userData() const
Definition: blpapi_schema.h:739
struct blpapi_SchemaElementDefinition blpapi_SchemaElementDefinition_t
Definition: blpapi_types.h:191
int blpapi_SchemaTypeDefinition_status(const blpapi_SchemaTypeDefinition_t *type)
void setUserData(void *userData)
Definition: blpapi_schema.h:873
static void throwOnError(int errorCode)
Definition: blpapi_exception.h:526
struct blpapi_ConstantList blpapi_ConstantList_t
Definition: blpapi_types.h:133
blpapi_Name_t * blpapi_SchemaTypeDefinition_name(const blpapi_SchemaTypeDefinition_t *type)
~SchemaElementDefinition()
Definition: blpapi_schema.h:668
This item is not current and will not appear in Messages.
Definition: blpapi_schema.h:267
int blpapi_SchemaElementDefinition_print(const blpapi_SchemaElementDefinition_t *element, blpapi_StreamWriter_t streamWriter, void *userStream, int level, int spacesPerLevel)
Definition: blpapi_schema.h:263
This item is current and may appear in Messages.
Definition: blpapi_schema.h:260
void * blpapi_SchemaTypeDefinition_t
Definition: blpapi_schema.h:97
std::ostream & operator<<(std::ostream &os, const CorrelationId &correlator)
Definition: blpapi_correlationid.h:592
blpapi_ConstantList_t * blpapi_SchemaTypeDefinition_enumeration(const blpapi_SchemaTypeDefinition_t *element)
size_t minValues() const
Definition: blpapi_schema.h:691
Indicates an array has an unbounded number of values.
Definition: blpapi_schema.h:337
void blpapi_SchemaTypeDefinition_setUserData(blpapi_SchemaTypeDefinition_t *element, void *userdata)
bool hasElementDefinition(const Name &name) const
Definition: blpapi_schema.h:785
const char * blpapi_SchemaElementDefinition_description(const blpapi_SchemaElementDefinition_t *field)
const char * description() const
Definition: blpapi_schema.h:675
int status() const
Definition: blpapi_schema.h:775
SchemaElementDefinition(blpapi_SchemaElementDefinition_t *handle)
Definition: blpapi_schema.h:662
A signature for callback on print and default C++ implementation.
void * blpapi_SchemaTypeDefinition_userData(const blpapi_SchemaTypeDefinition_t *element)
int blpapi_SchemaTypeDefinition_isEnumeration(const blpapi_SchemaTypeDefinition_t *type)
blpapi_SchemaElementDefinition_t * impl() const
Definition: blpapi_schema.h:744
int blpapi_SchemaElementDefinition_status(const blpapi_SchemaElementDefinition_t *field)
int blpapi_SchemaTypeDefinition_print(const blpapi_SchemaTypeDefinition_t *element, blpapi_StreamWriter_t streamWriter, void *userStream, int level, int spacesPerLevel)
size_t numAlternateNames() const
Definition: blpapi_schema.h:701
void setUserData(void *userData)
Definition: blpapi_schema.h:734
Definition: blpapi_schema.h:270
Defines Exceptions that can be thrown by the blpapi library.
#define BLPAPI_ERROR_INDEX_OUT_OF_RANGE
Definition: blpapi_error.h:76
void * blpapi_SchemaElementDefinition_userData(const blpapi_SchemaElementDefinition_t *field)
Definition: blpapi_schema.h:257
const char * description() const
Definition: blpapi_schema.h:770
static int writeToStream(const char *data, int length, void *stream)
Definition: blpapi_streamproxy.h:93
Name name() const
Definition: blpapi_schema.h:765
Name getAlternateName(size_t index) const
Definition: blpapi_schema.h:706
#define BLPAPI_EXPORT
Definition: blpapi_defs.h:171
size_t blpapi_SchemaElementDefinition_maxValues(const blpapi_SchemaElementDefinition_t *field)
size_t maxValues() const
Definition: blpapi_schema.h:696
blpapi_Name_t * blpapi_SchemaElementDefinition_name(const blpapi_SchemaElementDefinition_t *field)
Definition: blpapi_schema.h:471
#define BLPAPI_STATUS_PENDING_DEPRECATION
Definition: blpapi_defs.h:101
Provide a representation of strings for use as container keys.
int blpapi_SchemaTypeDefinition_datatype(const blpapi_SchemaTypeDefinition_t *type)
bool isEnumerationType() const
Definition: blpapi_schema.h:849