Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
Dali::Internal::Adaptor::SharedFile Class Reference

#include <shared-file.h>

Collaboration diagram for Dali::Internal::Adaptor::SharedFile:
Collaboration graph
[legend]

Public Member Functions

 SharedFile ()
 Constructor. More...
 
virtual ~SharedFile ()
 Destructor. More...
 
bool OpenFile (const char *filename, int size, bool isSystem)
 Opens a file for read/write. More...
 
void Close ()
 Close the shared file. More...
 
unsigned char * GetAddress ()
 Get the memory address of the shared file. More...
 

Static Public Member Functions

static SharedFileNew (const char *filename, int size, bool isSystem)
 Open an existing shared file for read/write. More...
 

Private Attributes

int mFileDescriptor
 
int mSize
 
void * mAddress
 
std::string mFilename
 

Detailed Description

Definition at line 31 of file shared-file.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::SharedFile::SharedFile ( )

Constructor.

Definition at line 56 of file shared-file.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Adaptor::SharedFile::~SharedFile ( )
virtual

Destructor.

Definition at line 64 of file shared-file.cpp.

References Close().

Here is the call graph for this function:

Member Function Documentation

void Dali::Internal::Adaptor::SharedFile::Close ( )

Close the shared file.

Definition at line 69 of file shared-file.cpp.

References mAddress, mFileDescriptor, and mSize.

Referenced by ~SharedFile().

Here is the caller graph for this function:

unsigned char * Dali::Internal::Adaptor::SharedFile::GetAddress ( )

Get the memory address of the shared file.

Returns
the memory address

Definition at line 84 of file shared-file.cpp.

References mAddress.

SharedFile * Dali::Internal::Adaptor::SharedFile::New ( const char *  filename,
int  size,
bool  isSystem 
)
static

Open an existing shared file for read/write.

Returns
The shared file, or NULL if a file could not be opened and mapped.

Definition at line 41 of file shared-file.cpp.

References OpenFile(), and SharedFile().

Here is the call graph for this function:

bool Dali::Internal::Adaptor::SharedFile::OpenFile ( const char *  filename,
int  size,
bool  isSystem 
)

Opens a file for read/write.

Returns
true if opened, false on error.

Definition at line 89 of file shared-file.cpp.

References mAddress, mFileDescriptor, mFilename, and mSize.

Referenced by New().

Here is the caller graph for this function:

Member Data Documentation

void* Dali::Internal::Adaptor::SharedFile::mAddress
private

Definition at line 70 of file shared-file.h.

Referenced by Close(), GetAddress(), and OpenFile().

int Dali::Internal::Adaptor::SharedFile::mFileDescriptor
private

Definition at line 68 of file shared-file.h.

Referenced by Close(), and OpenFile().

std::string Dali::Internal::Adaptor::SharedFile::mFilename
private

Definition at line 71 of file shared-file.h.

Referenced by OpenFile().

int Dali::Internal::Adaptor::SharedFile::mSize
private

Definition at line 69 of file shared-file.h.

Referenced by Close(), and OpenFile().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali