Am5os
 All Classes Functions Pages
Public Member Functions | List of all members
HDFReader Class Reference

Public Member Functions

 HDFReader (std::string file)
 
int ReadFile ()
 
std::vector< int64_t > ReadOneProtobufFile (unsigned int index)
 
std::vector< std::vector
< int64_t > > 
ReadAllProtobufFiles ()
 
int GetNumberOfProtobufFiles ()
 
std::string GetProtobufFilesDescription ()
 

Constructor & Destructor Documentation

HDFReader::HDFReader ( std::string  file)

Constructor

Parameters
fileThe filename of the file to read

Member Function Documentation

int HDFReader::GetNumberOfProtobufFiles ( )

Gets the total number of protobuf files in the file

Returns
The number of protobuf files

Here is the caller graph for this function:

std::string HDFReader::GetProtobufFilesDescription ( )

Gets the (protobuf) description attribute of the protobuf files.

Returns
The string with the protobuf description.
std::vector< std::vector< int64_t > > HDFReader::ReadAllProtobufFiles ( )

Gets the vector with all protobuf files

Returns
The vector with the protobuf files

Here is the call graph for this function:

Here is the caller graph for this function:

int HDFReader::ReadFile ( )

Reads the given hdf5 file and fills the image ids and description string information.

Returns
0 if everything went good; 0 if it failed

Here is the caller graph for this function:

std::vector< int64_t > HDFReader::ReadOneProtobufFile ( unsigned int  index)

Reads one protobuf file at the given index.

Parameters
indexThe index of the protobuf to be read. If it does not exist, the first protobuf file is read
Returns
The vector with protobuf file

Here is the caller graph for this function:


The documentation for this class was generated from the following files: