Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::Win32ResourceBundle Class Reference

#include <Win32ResourceBundle.h>

Inheritance diagram for VCF::Win32ResourceBundle:

VCF::Object VCF::ResourceBundlePeer VCF::Win32GraphicsResourceBundle VCF::Win32AppResourceBundle List of all members.

Public Member Functions

 Win32ResourceBundle ()
virtual ~Win32ResourceBundle ()
virtual String getString (const String &resourceName)
 returns a resource string given a resource name
virtual String getVFF (const String &resourceName)
 returns the text that represents an VFF file (where VFF stands for "Visual Form File" ).
virtual ResourcegetResource (const String &resourceName)
 returns a Resource object given the resource's name.
virtual ProgramInfogetProgramInfo ()
 This wil be re-implemented on the version for the AppKit void setApplicationPeer( ApplicationPeer* appPeer ) { appPeer_ = appPeer; }.
virtual OSHandleID getHandleID ()
 Returns a native handle (if available) for dealing with resources.

Static Public Member Functions

static ProgramInfogetProgramInfoFromFileName (const String &fileName)

Protected Member Functions

virtual HINSTANCE getResourceInstance ()

Static Protected Member Functions

static BOOL CALLBACK EnumResTypeProcA (HMODULE hModule, char *lpszType, LPARAM lParam)
static BOOL CALLBACK EnumResNameProcA (HMODULE hModule, const char *lpszType, char *lpszName, LPARAM lParam)

Protected Attributes

bool foundResName_
const char * foundResType_
String searchResName_

Constructor & Destructor Documentation

VCF::Win32ResourceBundle::Win32ResourceBundle  ) 
 

virtual VCF::Win32ResourceBundle::~Win32ResourceBundle  )  [virtual]
 


Member Function Documentation

static BOOL CALLBACK VCF::Win32ResourceBundle::EnumResNameProcA HMODULE  hModule,
const char *  lpszType,
char *  lpszName,
LPARAM  lParam
[static, protected]
 

static BOOL CALLBACK VCF::Win32ResourceBundle::EnumResTypeProcA HMODULE  hModule,
char *  lpszType,
LPARAM  lParam
[static, protected]
 

virtual OSHandleID VCF::Win32ResourceBundle::getHandleID  )  [inline, virtual]
 

Returns a native handle (if available) for dealing with resources.

On Win32 this would be the HINSTANCE passed in through a WinMain() like function or a DLMain() function. On OSX this will be a CFBundle instance.

Implements VCF::ResourceBundlePeer.

virtual ProgramInfo* VCF::Win32ResourceBundle::getProgramInfo  )  [virtual]
 

This wil be re-implemented on the version for the AppKit void setApplicationPeer( ApplicationPeer* appPeer ) { appPeer_ = appPeer; }.

Implements VCF::ResourceBundlePeer.

static ProgramInfo* VCF::Win32ResourceBundle::getProgramInfoFromFileName const String fileName  )  [static]
 

virtual Resource* VCF::Win32ResourceBundle::getResource const String resourceName  )  [virtual]
 

returns a Resource object given the resource's name.

this function walks through all the app's resources, by type and then by name. The first match is the resource returned.

Implements VCF::ResourceBundlePeer.

virtual HINSTANCE VCF::Win32ResourceBundle::getResourceInstance  )  [protected, virtual]
 

Reimplemented in VCF::Win32AppResourceBundle.

virtual String VCF::Win32ResourceBundle::getString const String resourceName  )  [virtual]
 

returns a resource string given a resource name

Implements VCF::ResourceBundlePeer.

virtual String VCF::Win32ResourceBundle::getVFF const String resourceName  )  [virtual]
 

returns the text that represents an VFF file (where VFF stands for "Visual Form File" ).

This text is standard XML and contains the component hierarchy and properties for creating a frame.

Implements VCF::ResourceBundlePeer.


Member Data Documentation

bool VCF::Win32ResourceBundle::foundResName_ [protected]
 

const char* VCF::Win32ResourceBundle::foundResType_ [protected]
 

String VCF::Win32ResourceBundle::searchResName_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information