#include <FileSynchronizer.h>

Public Member Functions | |
| FileSynchronizer (const std::string &fileName, bool isFileCleanNow=false) | |
| FileSynchronizer & | operator= (const FileSynchronizer &rhs) |
| virtual bool | isDirty (bool updateTimestamp=false, bool *outSuccess=NULL) |
Polls the OS for whether or not the underlying file's last modified timestamp or filesize has changed since the last time isDirty was called with updateTimestamp set to true. | |
| bool | setClean (bool *outSuccess=NULL) |
| Updates the internal cache of file attributes, in effect setting the underlying file to be 'clean'. | |
| std::string | getFileName () const |
| virtual std::string | getShaderObjectTypeString () const |
| FileSynchronizer (const std::string &fileName, bool isFileCleanNow=false) | |
| FileSynchronizer & | operator= (const FileSynchronizer &rhs) |
| virtual bool | isDirty (bool updateTimestamp=false, bool *outSuccess=NULL) |
Polls the OS for whether or not the underlying file's last modified timestamp or filesize has changed since the last time isDirty was called with updateTimestamp set to true. | |
| bool | setClean (bool *outSuccess=NULL) |
| Updates the internal cache of file attributes, in effect setting the underlying file to be 'clean'. | |
| std::string | getFileName () const |
| virtual std::string | getShaderObjectTypeString () const |
Protected Member Functions | |
| FileSynchronizer (const FileSynchronizer ©) | |
| FileSynchronizer (const FileSynchronizer ©) | |
Protected Attributes | |
| std::string | m_fileName |
| time_t | m_lastModified |
| off_t | m_lastKnownSize |
| LibGLShader::FileSynchronizer::FileSynchronizer | ( | const std::string & | fileName, | |
| bool | isFileCleanNow = false | |||
| ) | [inline] |
| LibGLShader::FileSynchronizer::FileSynchronizer | ( | const FileSynchronizer & | copy | ) | [inline, protected] |
| LibGLShader::FileSynchronizer::FileSynchronizer | ( | const std::string & | fileName, | |
| bool | isFileCleanNow = false | |||
| ) | [inline] |
| LibGLShader::FileSynchronizer::FileSynchronizer | ( | const FileSynchronizer & | copy | ) | [inline, protected] |
| FileSynchronizer& LibGLShader::FileSynchronizer::operator= | ( | const FileSynchronizer & | rhs | ) | [inline] |
| bool LibGLShader::FileSynchronizer::isDirty | ( | bool | updateTimestamp = false, |
|
| bool * | outSuccess = NULL | |||
| ) | [virtual] |
Polls the OS for whether or not the underlying file's last modified timestamp or filesize has changed since the last time isDirty was called with updateTimestamp set to true.
| updateTimestamp | will update the internal cache of file attributes, in effect setting the underlying file to be 'clean' | |
| outSuccess | denotes whether or not the OS query was successful (if non-NULL) |
| bool LibGLShader::FileSynchronizer::setClean | ( | bool * | outSuccess = NULL |
) | [inline] |
Updates the internal cache of file attributes, in effect setting the underlying file to be 'clean'.
| outSuccess | denotes whether or not the operation was successful (if non-NULL) |
| std::string LibGLShader::FileSynchronizer::getFileName | ( | ) | const [inline] |
| virtual std::string LibGLShader::FileSynchronizer::getShaderObjectTypeString | ( | ) | const [inline, virtual] |
from ShaderObject
Implements LibGLShader::ShaderObject.
| FileSynchronizer& LibGLShader::FileSynchronizer::operator= | ( | const FileSynchronizer & | rhs | ) | [inline] |
| virtual bool LibGLShader::FileSynchronizer::isDirty | ( | bool | updateTimestamp = false, |
|
| bool * | outSuccess = NULL | |||
| ) | [virtual] |
Polls the OS for whether or not the underlying file's last modified timestamp or filesize has changed since the last time isDirty was called with updateTimestamp set to true.
| updateTimestamp | will update the internal cache of file attributes, in effect setting the underlying file to be 'clean' | |
| outSuccess | denotes whether or not the OS query was successful (if non-NULL) |
| bool LibGLShader::FileSynchronizer::setClean | ( | bool * | outSuccess = NULL |
) | [inline] |
Updates the internal cache of file attributes, in effect setting the underlying file to be 'clean'.
| outSuccess | denotes whether or not the operation was successful (if non-NULL) |
| std::string LibGLShader::FileSynchronizer::getFileName | ( | ) | const [inline] |
| virtual std::string LibGLShader::FileSynchronizer::getShaderObjectTypeString | ( | ) | const [inline, virtual] |
from ShaderObject
Implements LibGLShader::ShaderObject.
std::string LibGLShader::FileSynchronizer::m_fileName [protected] |
time_t LibGLShader::FileSynchronizer::m_lastModified [protected] |
off_t LibGLShader::FileSynchronizer::m_lastKnownSize [protected] |
1.5.6