Browse Source

Added getFilename() to Jupiter::Database.

release/0.19
Jessica James 9 years ago
parent
commit
b05f0405f9
  1. 5
      Jupiter/Database.cpp
  2. 7
      Jupiter/Database.h
  3. BIN
      Release/Jupiter.lib

5
Jupiter/Database.cpp

@ -114,6 +114,11 @@ void Jupiter::Database::process_file_finish(FILE *)
{
}
const Jupiter::CStringType &Jupiter::Database::getFilename() const
{
return Jupiter::Database::data_->file_name;
}
bool Jupiter::Database::append(Jupiter::DataBuffer &data)
{
return Jupiter::Database::append(Jupiter::Database::data_->file_name, data);

7
Jupiter/Database.h

@ -78,6 +78,13 @@ namespace Jupiter
*/
virtual void process_file_finish(FILE *file);
/**
* @brief Returns the name of the file which was loaded in process_file.
*
* @return Name of the file on the file system.
*/
const Jupiter::CStringType &getFilename() const;
/**
* @brief Appends a DataBuffer to the end of the Database.
*

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save