CoinResources - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 4.0.0
Note : Coin
NAMECoinResources − Static utility functions for managing data resources at the basic buffer level.
SYNOPSIS
Enumerationsenum ResourceFlags { NONE = 0, COIN_RESOURCE_NOT_A_FILE =0x0001 }
Functionsvoid init (void)
SbByteBuffer get (const char *resloc)
SbBool set (const char *resloc, const SbByteBuffer &buffer, ResourceFlags flags=NONE)
void freeLoadedExternals (void)
Detailed DescriptionStatic utility functions for managing data resources at the basic buffer level. This class is just a static scope for some resource managing functions. With this, Coin can register built-in default resources that can later be retrieved through the same resource locator, either from disk (if present) and as a fallback the built-in (compiled in) buffer The resource locators take the form of a URL with coin as its schema and empty host eg. 'coin://path/to/resource.ext'. The 'coin:' prefix is for Coin to differentiate a resource locator from a filename (for multipurpose function usage). The path/to/resource.ext is for most platforms the path under the environment variable $COINDIR where the file should be present. For Mac OS X, the path is under the Inventor framework bundle Resources/ directory, if Coin was installed as a framework that is. The file on disk can be an updated version, compared to the compiled-in buffer, which is why the externalized files are prioritized over the builtin buffers. A resource does not need to have a corresponding external file. This is configured in the flags parameter when the resource is set. You can in other words also register built-in-only resources.
Function Documentation
SbByteBuffer CoinResources::get (const char * resloc)Returns a resource if one exists. If the Coin installation permits, the resource will be loaded from file, but if the file can not be located or loaded, builtin versions will be returned instead. Returns TRUE on success, and FALSE if there is no such resource.
SbBool CoinResources::set (const char * resloc, const SbByteBuffer & buffer, ResourceFlags flags = NONE)This function registers a new resource. The resource locator (resloc) should take the form 'coin:' followed by a relative file path that should lead to the file representation of the resource from where the COINDIR environment variable points. The relative path should use / for directory separation, and not if on MS Windows. If you put COIN_RESOURCE_NOT_A_FILE in the flags argument, then the automatic file searching will not be performed. Returns TRUE if the resource was set, and FALSE if something went wrong. FALSE would most likely be returned because the resource already exists.
void CoinResources::freeLoadedExternals (void)This function deallocates all the buffers that have been loaded from disk. Internal buffers will not be freed, as they are expected to be compiled into the Coin library data section.
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 10,630 byte
man-CoinResources.3coin4Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 190,414
Visitor ID : :
Visitor IP : 3.138.134.106 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.