FileHeader
Fields
const unsigned int |
Functions
unsigned int |
|
void * |
|
const void * |
|
class T_As |
|
class T_As |
|
const String & |
|
const String & |
|
bool |
|
Detailed Description
-
class FileHeader : public RED::Object
This class stores the info read from a .red file header.
@related The .red File Format, class RED::IREDFile
After a successful reading of a .red file, you’ll get access to its file header. It encodes some global information about the read file including:
the parent application (optional),
the version of Luminate used to write the file,
the name of the file author (optional),
the encryption status of the file.
Public Functions
-
virtual void *As(const RED::CID &iCID)
Converts the object to an instance of the given type.
- Parameters
iCID – Requested class.
- Returns
An object pointer of the given class on success, NULL otherwise.
-
virtual const void *As(const RED::CID &iCID) const
Converts the object to an instance of the given type.
- Parameters
iCID – Requested class.
- Returns
An object pointer of the given class on success, NULL otherwise.
-
FileHeader()
FileHeader default construction method.
-
FileHeader(const RED::String &iParentApplication, const RED::String &iAuthor, const RED::Version &iVersion, bool iEncrypted)
Construction method.
- Parameters
iParentApplication – Name of the application source of the file.
iAuthor – File author’s name.
iVersion – REDsdk version used to create the file.
iEncrypted – Is the file encrypted or not ?
-
~FileHeader()
FileHeader destruction method.
-
inline const RED::String &GetParentApplication() const
Gets the parent application name.
- Returns
A string describing the parent application that produced the .red file.
-
inline const RED::String &GetAuthorName() const
- Returns
A string describing the author of the .red file.
-
inline bool IsEncrypted() const
- Returns
A boolean value describing whether the .red file is encrypted (true) or not (false).
Public Static Functions
-
static inline unsigned int GetChunkSignature()
Public Static Attributes
-
static const unsigned int _signature
Chunk’s signature.