FileHeader

Fields

const unsigned int

_signature

Functions

CID

GetClassID

unsigned int

GetChunkSignature

void *

As

const void *

As

class T_As

As

class T_As

As

FileHeader

FileHeader

~FileHeader

const String &

GetParentApplication

const String &

GetAuthorName

bool

IsEncrypted

Version

GetRedsdkVersion

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.

template<class T_As>
inline T_As *As()
template<class T_As>
inline const T_As *As() const
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).

inline Version GetRedsdkVersion() const
Returns

The REDsdk version that was used to build the .red file.

Public Static Functions

static inline RED::CID GetClassID()
static inline unsigned int GetChunkSignature()

Public Static Attributes

static const unsigned int _signature

Chunk’s signature.