class RED::FileHeader

This class stores the info read from a .red file header. More...

#include <REDIREDFile.h>

Inherits: Object.

Public functions:

FileHeader ( )
FileHeader ( const RED::String & iParentApplication, const RED::String & iAuthor, const RED::Version & iVersion, bool iEncrypted )
~FileHeader ( )
virtual void *As ( const RED::CID & iCID )
virtual const void *As ( const RED::CID & iCID ) const
template< class T_As > const T_As *As ( ) const
template< class T_As > T_As *As ( )
const RED::String &GetAuthorName ( ) const
const RED::String &GetParentApplication ( ) const
VersionGetRedsdkVersion ( ) const
boolIsEncrypted ( ) const

Public static functions:

static RED::CIDGetClassID ( )

Public static variables:

static const unsigned int_signature

Protected variables:

RED::String_author
bool_encrypted
RED::String_parentapp
RED::Version_version

Detailed description:

This class stores the info read from a .red file header.

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:

Functions documentation

FileHeader default construction method.

public RED::FileHeader::FileHeader(const RED::String &iParentApplication,
const RED::String &iAuthor,
const RED::Version &iVersion,
booliEncrypted
)

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 destruction method.

public virtual void * RED::FileHeader::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.

Reimplements: RED::Object::As.

public virtual const void * RED::FileHeader::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.

Reimplements: RED::Object::As.

template< class T_As > public const T_As * RED::FileHeader::As() const

Template version of the as const method.

Simply set T to be the class you want to retrieve an interface to.

Returns:

A pointer to a const instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

template< class T_As > public T_As * RED::FileHeader::As()

Template version of the as method.

Simply set T to be the class you want to retrieve an interface to.

Returns:

A pointer to an instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

Returns:

A string describing the author of the .red file.

Gets the parent application name.

Returns:

A string describing the parent application that produced the .red file.

Returns:

The REDsdk version that was used to build the .red file.
public bool RED::FileHeader::IsEncrypted() const

Returns:

A boolean value describing whether the .red file is encrypted (true) or not (false).

Variables documentation

public static const unsigned int RED::FileHeader::_signature

Chunk's signature.

.red file author.

flag indicating if the .red file is encrypted or not.

.red file parent application.

REDsdk version.