#include <c4d_resource.h>
This class allows to access resource files on the hard drive, for example to load dialog resources or to access string tables.
Public Member Functions | |
| GeResource () | |
| ~GeResource () | |
| Bool | Init () |
| Bool | Init (const Filename &path, Bool regardIsStopped=true) |
| Bool | InitAsGlobal () |
| const String & | LoadString (Int32 id) |
| Bool | ReloadResource () |
| void | Free () |
| LocalResource * | Get () |
Private Attributes | |
| class LocalResource * | lr |
| Bool | state |
| Bool | glob |
| Filename * | initfn |
| Bool | _regardIsStopped |
| GeResource | ( | ) |
Default constructor.
| ~GeResource | ( | ) |
Default destructor.
| Bool Init | ( | ) |
Initializes the resources from the default folder of the plugin.
Initializes the resources from their files in the 'res' folder.
| [in] | path | The root path of the plugin's directory to find the 'res' folder. |
| [in] | regardIsStopped | Internal. |
| Bool InitAsGlobal | ( | ) |
Lets access the Cinema 4D main application string resource.
Loads a string from the string resource file.
| [in] | id | The ID for the string in the resource file. |
| Bool ReloadResource | ( | ) |
Private.
| void Free | ( | ) |
Frees all resources used by the class and sets the internal pointer to nullptr.
| LocalResource* Get | ( | ) |
Gets the main program's resource.
|
private |
|
private |
|
private |
|
private |
|
private |