10 #ifndef CMZN_STREAM_HPP__    11 #define CMZN_STREAM_HPP__    13 #include "opencmiss/zinc/stream.h"    20 class StreamresourceFile;
    21 class StreamresourceMemory;
    41     cmzn_streamresource_id id;
    49     explicit Streamresource(cmzn_streamresource_id in_streamresource_id) : id(in_streamresource_id)
    57         cmzn_streamresource_id temp_id = cmzn_streamresource_access(streamResource.id);
    60             cmzn_streamresource_destroy(&
id);
    70             cmzn_streamresource_destroy(&
id);
    89     cmzn_streamresource_id 
getId()
 const   132         Streamresource(reinterpret_cast<cmzn_streamresource_id>(streamresource_file_id))
   143         return cmzn_streamresource_file_get_name(
   144             reinterpret_cast<cmzn_streamresource_file_id>(
id));
   166         Streamresource(reinterpret_cast<cmzn_streamresource_id>(streamresource_memory_id))
   180     int getBuffer(
void **memory_buffer_references, 
unsigned int *memory_buffer_sizes)
   182         return cmzn_streamresource_memory_get_buffer(
   183             reinterpret_cast<cmzn_streamresource_memory_id>(
id), memory_buffer_references,
   184             memory_buffer_sizes);
   217     cmzn_streaminformation_id id;
   225     explicit Streaminformation(cmzn_streaminformation_id in_streaminformation_id) : id(in_streaminformation_id)
   229         id(cmzn_streaminformation_access(streamInformation.id))
   237         DATA_COMPRESSION_TYPE_INVALID =     CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_INVALID,
   239         DATA_COMPRESSION_TYPE_DEFAULT = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_DEFAULT,
   247         DATA_COMPRESSION_TYPE_NONE = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_NONE,
   252         DATA_COMPRESSION_TYPE_GZIP = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_GZIP,
   259         DATA_COMPRESSION_TYPE_BZ2 = CMZN_STREAMINFORMATION_DATA_COMPRESSION_TYPE_BZIP2
   270         cmzn_streaminformation_id temp_id = cmzn_streaminformation_access(streamInformation.id);
   273             cmzn_streaminformation_destroy(&
id);
   283             cmzn_streaminformation_destroy(&
id);
   302     cmzn_streaminformation_id 
getId()
 const   325             cmzn_streaminformation_create_streamresource_file(
id, file_name)));
   346             cmzn_streaminformation_create_streamresource_memory(
id)));
   367         unsigned int buffer_length)
   370             cmzn_streaminformation_create_streamresource_memory_buffer(
id, buffer, buffer_length)));
   390         unsigned int buffer_length)
   393             cmzn_streaminformation_create_streamresource_memory_buffer_copy(
id, buffer, buffer_length)));
   407             cmzn_streaminformation_get_resource_data_compression_type(
   408                 reinterpret_cast<cmzn_streaminformation_id>(
id), resource.
getId()));
   425         return cmzn_streaminformation_set_resource_data_compression_type(
   426             reinterpret_cast<cmzn_streaminformation_id>(
id), resource.
getId(),
   427             static_cast<cmzn_streaminformation_data_compression_type
>(dataCompressionType));
   439             cmzn_streaminformation_get_data_compression_type(
   440                 reinterpret_cast<cmzn_streaminformation_id>(
id)));
   454         return cmzn_streaminformation_set_data_compression_type(
   455             reinterpret_cast<cmzn_streaminformation_id>(
id),
   456             static_cast<cmzn_streaminformation_data_compression_type>(dataCompressionType));
 StreamresourceFile castFile()
Definition: stream.hpp:189
 
A derived streamresource describing a file. 
Definition: stream.hpp:123
 
A description of a resource for reading from or writing to. 
Definition: stream.hpp:37
 
int getBuffer(void **memory_buffer_references, unsigned int *memory_buffer_sizes)
Definition: stream.hpp:180
 
char * getName()
Definition: stream.hpp:141
 
A derived stream resource describing a block of memory. 
Definition: stream.hpp:157
 
StreamresourceMemory castMemory()
Definition: stream.hpp:194
 
The OpenCMISS namespace. 
Definition: context.hpp:20
 
cmzn_streamresource_id getId() const 
Definition: stream.hpp:89
 
bool isValid() const 
Definition: stream.hpp:79