Cypress  1.0
C++ Spiking Neural Network Simulation Framework
Public Member Functions | List of all members
cypress::Resource Class Reference

#include <resource.hpp>

Public Member Functions

 Resource (const std::vector< uint8_t > &data)
 
 Resource (const std::string &data)
 
 ~Resource ()
 
const std::vector< uint8_t > & data () const
 
const std::string & open () const
 
const std::string open_local (std::string filename) const
 

Detailed Description

The Resource class is used to manage (binary) resources.

Constructor & Destructor Documentation

cypress::Resource::Resource ( const std::vector< uint8_t > &  data)
inline

Creates a resource containing the given data.

cypress::Resource::Resource ( const std::string &  data)
inline

Creates a resource containing the given data.

cypress::Resource::~Resource ( )

Destroys the resource and deletes any temporary file created to access

Member Function Documentation

const std::vector<uint8_t>& cypress::Resource::data ( ) const
inline

Returns a reference at the vector containing the data.

const std::string& cypress::Resource::open ( ) const

Returns the name of a file which will contain the data stored in the resource.

const std::string cypress::Resource::open_local ( std::string  filename) const

Returns the name of a file in the current directory which will contain the data stored in the resource. Deletion of the file is not covered!


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