20 #include "SheafSystem/attributes_record.h" 22 #include "SheafSystem/assert_contract.h" 23 #include "SheafSystem/namespace_poset.h" 24 #include "SheafSystem/poset.h" 222 require(
scaffold().structure().state_is_read_accessible());
273 ensure(
buf() == *xbuf);
274 ensure(
buf_ub() == strlen(*xbuf));
305 ensure(*xbuf ==
buf());
322 scaffold().structure().state_is_read_write_accessible() :
324 require(
scaffold().name_space()->state_is_read_accessible());
333 ensure(
scaffold().internal_schema().is_attached());
334 ensure(
scaffold().transfer_schema().is_attached());
335 ensure(
scaffold().external_schema().is_attached());
351 require(
scaffold().structure().state_is_read_accessible());
virtual attributes_record * clone() const
Virtual constructor; makes a new instance of the same type as this.
virtual bool invariant() const
Class invariant.
poset_scaffold & scaffold()
The scaffold for the poset associated with this record (mutable version).
void externalize(hdf_buf_type *xhdf_buffer)
Converts the record from internal to external form.
void * buf() const
The buffer.
void convert_internal_buffer_to_external_buffer()
Converts the internal buffer to external form and places the result in the external buffer...
virtual bool invariant() const
Class invariant.
virtual void transfer_internal_buffer_to_poset()=0
Initializes scaffold from the internal buffer.
virtual void transfer_poset_to_internal_buffer()=0
Initializes the internal buffer from the scaffold.
The general variable length record wrapper/adapter for transferring data between the kernel and the i...
void put_delete_buffer(bool xval)
Sets delete_buffer to value xval.
void put_buf(const void *xbuf, size_t xub)
Sets the buffer to xbuf.
void internalize(hdf_buf_type *xhdf_buffer)
Converts the record from external to internal form.
Abstract base class with useful features for all objects.
std::string _str_buf
The internal/external buffer.
size_t buf_ub() const
The size of the buffer, in bytes.
char * hdf_buf_type
The type of hdf buffer.
bool is_internal() const
True if the internal buffer has been initialized.
void transfer_HDF_to_external_buffer(hdf_buf_type *xbuf)
Initializes the external buffer from xbuf.
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
void convert_external_buffer_to_internal_buffer()
Converts the external buffer to internal form and places the result in the internal buffer...
void put_is_internal(bool xis_internal)
Sets is_internal to xis_internal.
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
attributes_record(const attributes_record &xother)
Copy constructor.
virtual ~attributes_record()
Destructor.
bool invariant_check() const
True if invariant checking is enabled.
A poset specific collection of data converters, various buffers and other data used while transferrin...
bool is_external() const
True if the external buffer has been initialized.
An abstract wrapper/adapter for attributes records. Intended for transferring data between the kernel...
bool is_same_type(const any *other) const
True if other is the same type as this.
void enable_invariant_check() const
Enable invariant checking.
void transfer_external_buffer_to_HDF(hdf_buf_type *xbuf)
Initializes the HDF buffer xbuf from the external buffer.
void put_is_external(bool xis_external)
Sets is_external to xis_external.