SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::gui::FilesRecentlyOpenedManager Class Reference

#include <FilesRecentlyOpenedManager.h>

Inheritance diagram for sofa::gui::FilesRecentlyOpenedManager:

Protected Attributes

const unsigned int max_num_files
 
sofa::helper::vector< std::string > files
 
std::string path
 

Public Member Functions

 FilesRecentlyOpenedManager (const std::string &configFile)
 
virtual ~FilesRecentlyOpenedManager ()
 
virtual void openFile (const std::string &file)
 
virtual std::string getFilename (unsigned int idx) const
 
unsigned int getMaxNumFiles () const
 
const std::string & getPath () const
 
void setPath (const std::string &p)
 
const sofa::helper::vector< std::string > & getFiles () const
 
void setFiles (const helper::vector< std::string > &f)
 

Protected Member Functions

void writeFiles () const
 

Attribute details

sofa::helper::vector< std::string > sofa::gui::FilesRecentlyOpenedManager::files
protected
const unsigned int sofa::gui::FilesRecentlyOpenedManager::max_num_files
protected
std::string sofa::gui::FilesRecentlyOpenedManager::path
protected

Constructor details

sofa::gui::FilesRecentlyOpenedManager::FilesRecentlyOpenedManager ( const std::string &  configFile)
virtual sofa::gui::FilesRecentlyOpenedManager::~FilesRecentlyOpenedManager ( )
inlinevirtual

Function details

virtual std::string sofa::gui::FilesRecentlyOpenedManager::getFilename ( unsigned int  idx) const
inlinevirtual
const sofa::helper::vector< std::string >& sofa::gui::FilesRecentlyOpenedManager::getFiles ( ) const
inline
unsigned int sofa::gui::FilesRecentlyOpenedManager::getMaxNumFiles ( ) const
inline
const std::string& sofa::gui::FilesRecentlyOpenedManager::getPath ( ) const
inline
void sofa::gui::FilesRecentlyOpenedManager::openFile ( const std::string &  file)
virtual
void sofa::gui::FilesRecentlyOpenedManager::setFiles ( const helper::vector< std::string > &  f)
inline
void sofa::gui::FilesRecentlyOpenedManager::setPath ( const std::string &  p)
void sofa::gui::FilesRecentlyOpenedManager::writeFiles ( ) const
protected