#include <FileReference.hpp>
|
|
| FileReference (const openstudio::path &p) |
|
| FileReference (const openstudio::UUID &uuid, const openstudio::UUID &versionUUID, const std::string &name, const std::string &displayName, const std::string &description, const openstudio::path &p, const FileReferenceType &fileType, const DateTime ×tampLast, const std::string &checksumCreate, const std::string &checksumLast) |
| De-serialization constructor.
|
|
virtual | ~FileReference ()=default |
|
FileReference | clone () const |
|
|
openstudio::UUID | uuid () const |
|
openstudio::UUID | versionUUID () const |
|
std::string | name () const |
|
std::string | displayName () const |
|
std::string | description () const |
|
openstudio::path | path () const |
|
FileReferenceType | fileType () const |
|
DateTime | timestampLast () const |
| Last modified time of this file, or time object was created if path does not actually exist on the file system.
|
|
std::string | checksumCreate () const |
| Checksum at time this object was created, if file exists.
|
|
std::string | checksumLast () const |
|
◆ FileReference() [1/2]
◆ FileReference() [2/2]
openstudio::FileReference::FileReference |
( |
const openstudio::UUID & | uuid, |
|
|
const openstudio::UUID & | versionUUID, |
|
|
const std::string & | name, |
|
|
const std::string & | displayName, |
|
|
const std::string & | description, |
|
|
const openstudio::path & | p, |
|
|
const FileReferenceType & | fileType, |
|
|
const DateTime & | timestampLast, |
|
|
const std::string & | checksumCreate, |
|
|
const std::string & | checksumLast ) |
De-serialization constructor.
Not for general use.
◆ ~FileReference()
virtual openstudio::FileReference::~FileReference |
( |
| ) |
|
|
virtualdefault |
◆ checksumCreate()
std::string openstudio::FileReference::checksumCreate |
( |
| ) |
const |
Checksum at time this object was created, if file exists.
Otherwise "00000000".
◆ checksumLast()
std::string openstudio::FileReference::checksumLast |
( |
| ) |
const |
◆ clone()
◆ description()
std::string openstudio::FileReference::description |
( |
| ) |
const |
◆ displayName()
std::string openstudio::FileReference::displayName |
( |
| ) |
const |
◆ fileType()
◆ makePathAbsolute()
bool openstudio::FileReference::makePathAbsolute |
( |
const openstudio::path & | searchDirectory | ) |
|
◆ makePathRelative()
Save the path as relative to basePath, or just keep the file name and extension if basePath.empty().
◆ name()
std::string openstudio::FileReference::name |
( |
| ) |
const |
◆ path()
◆ setDescription()
void openstudio::FileReference::setDescription |
( |
const std::string & | newDescription | ) |
|
◆ setDisplayName()
void openstudio::FileReference::setDisplayName |
( |
const std::string & | newDisplayName | ) |
|
◆ setName()
void openstudio::FileReference::setName |
( |
const std::string & | newName | ) |
|
◆ setPath()
◆ timestampLast()
DateTime openstudio::FileReference::timestampLast |
( |
| ) |
const |
Last modified time of this file, or time object was created if path does not actually exist on the file system.
◆ update()
bool openstudio::FileReference::update |
( |
const openstudio::path & | searchDirectory | ) |
|
Returns true and updates timestampLast and checksumLast if file is located.
◆ uuid()
◆ versionUUID()
◆ FileReferenceVector
◆ OptionalFileReference