9 #ifndef CMZN_STREAMREGION_HPP__
10 #define CMZN_STREAMREGION_HPP__
12 #include "zinc/streamregion.h"
13 #include "zinc/field.hpp"
14 #include "zinc/region.hpp"
15 #include "zinc/stream.hpp"
39 Streaminformation(reinterpret_cast<cmzn_streaminformation_id>(streaminformation_region_id))
57 cmzn_streaminformation_region_id
getId()
const
59 return reinterpret_cast<cmzn_streaminformation_region_id
>(id);
84 return cmzn_streaminformation_region_has_attribute(
85 reinterpret_cast<cmzn_streaminformation_region_id>(
id),
86 static_cast<cmzn_streaminformation_region_attribute>(attribute));
97 return cmzn_streaminformation_region_get_attribute_real(
98 reinterpret_cast<cmzn_streaminformation_region_id>(
id),
99 static_cast<cmzn_streaminformation_region_attribute>(attribute));
115 return cmzn_streaminformation_region_set_attribute_real(
116 reinterpret_cast<cmzn_streaminformation_region_id>(
id),
117 static_cast<cmzn_streaminformation_region_attribute>(attribute), value);
130 return cmzn_streaminformation_region_has_resource_attribute(
131 reinterpret_cast<cmzn_streaminformation_region_id>(
id), resource.
getId(),
132 static_cast<cmzn_streaminformation_region_attribute
>(attribute));
145 return cmzn_streaminformation_region_get_resource_attribute_real(
146 reinterpret_cast<cmzn_streaminformation_region_id>(
id), resource.
getId(),
147 static_cast<cmzn_streaminformation_region_attribute
>(attribute));
164 return cmzn_streaminformation_region_set_resource_attribute_real(
165 reinterpret_cast<cmzn_streaminformation_region_id>(
id), resource.
getId(),
166 static_cast<cmzn_streaminformation_region_attribute
>(attribute), value);
172 cmzn_streaminformation_region_get_resource_domain_types(
173 reinterpret_cast<cmzn_streaminformation_region_id>(
id), resource.
getId()));
176 int setResourceDomainTypes(
const Streamresource& resource,
Field::DomainTypes domainTypes)
178 return cmzn_streaminformation_region_set_resource_domain_types(
179 reinterpret_cast<cmzn_streaminformation_region_id>(
id), resource.getId(),
180 static_cast<cmzn_field_domain_types
>(domainTypes));
193 cmzn_region_create_streaminformation_region(
id)));
198 return cmzn_region_read(
id, streaminformationRegion.
getId());
203 return cmzn_region_write(
id, streaminformationRegion.
getId());
A description of a resource for reading from or writing to.
Definition: stream.hpp:36
StreaminformationRegion createStreaminformationRegion()
Definition: streamregion.hpp:190
int write(const StreaminformationRegion &streaminformationRegion)
Definition: streamregion.hpp:201
int DomainTypes
Definition: field.hpp:213
int read(const StreaminformationRegion &streaminformationRegion)
Definition: streamregion.hpp:196
cmzn_streamresource_id getId() const
Definition: stream.hpp:88