CFx SDK Documentation 2024 SP0
|
#include <RxSystemServices.h>
Public Member Functions | |
OdRxSystemServices () | |
virtual OdStreamBufPtr | createFile (const OdString &filename, Oda::FileAccessMode accessMode=Oda::kFileRead, Oda::FileShareMode shareMode=Oda::kShareDenyNo, Oda::FileCreationDisposition creationDisposition=Oda::kOpenExisting) |
virtual bool | accessFile (const OdString &filename, int accessMode) |
virtual OdInt64 | getFileCTime (const OdString &filename)=0 |
virtual OdInt64 | getFileMTime (const OdString &filename)=0 |
virtual OdInt64 | getFileSize (const OdString &filename)=0 |
virtual OdString | formatMessage (unsigned int formatId, va_list *argList=0)=0 |
virtual OdString | formatMsg (unsigned int formatId,...) |
virtual OdCodePageId | systemCodePage () const =0 |
virtual OdString | createGuid () |
virtual OdGUID | createOdGUID () |
virtual OdRxModule * | loadModule (const OdString &moduleFileName, bool silent) |
virtual void | unloadModule (OdRxModule *pModuleObj) |
virtual OdString | findModule (const OdString &applicationName) |
virtual void | warning (const OdString &message) |
virtual void | warning (const char *warnVisGroup, const OdString &message) |
virtual OdResult | initModelerLibrary (OdRxDictionary *pDict) |
virtual OdResult | uninitModelerLibrary (OdRxDictionary *pDict) |
virtual OdResult | getEnvVar (const OdString &varName, OdString &value)=0 |
virtual OdResult | setEnvVar (const OdString &varName, const OdString &newValue)=0 |
virtual OdString | getTemporaryPath () const |
virtual OdString | getUserName (Oda::UserNameFormat unFormat=Oda::kUserId) |
virtual OdString | getTempFileName () |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static OdRxModule * | loadModuleLib (const OdString &moduleFileName, bool silent) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base class for classes that provide platform-dependent file operations for Teigha.
Corresponding C++ library: TD_Root
<group OdRx_Classes>
Definition at line 186 of file RxSystemServices.h.
|
inline |
Definition at line 190 of file RxSystemServices.h.
|
virtual |
Returns true if and only if the specified file can be accessed in the specified mode.
filename | [in] Filename. |
accessMode | [in] Access mode. |
Value Description .. 0 File exists. Oda::kFileRead 0x80000000 Read access. Oda::kFileWrite 0x40000000 Write access.
|
virtual |
Creates and/or opens the specified file.
filename | [in] Filename. |
accessMode | [in] Access mode. |
shareMode | [in] Share mode. |
creationDisposition | [in] Creation disposition. |
Value Description Oda::kFileRead 0x80000000 Read access. Oda::kFileWrite 0x40000000 Write access.
shareMode must be one of the following:
Value Description Oda::kShareDenyReadWrite 0x10 deny read/write mode Oda::kShareDenyWrite 0x20 deny write mode Oda::kShareDenyRead 0x30 deny read mode Oda::kShareDenyNo 0x40 deny none mode
Creation disposition must be one of the following:
Value Description Oda::kCreateNew 1 Creates a new file; fails if the specified file already exists. Oda::kCreateAlways 2 Creates a new file; overwrites any existing file. Oda::kOpenExisting 3 Opens the file; fails if the file does not exist. Oda::kOpenAlways 4 Opens the file; creates the file if it does not exist. Oda::kTruncateExisting 5 Truncates the file; fails if the file does not exist. The file must be open at least Oda::kFileWrite.
|
virtual |
Returns a string representation for newly generated Globally Unique IDentifier (GUID) for this SystemServices object.
|
virtual |
Returns a newly generated Globally Unique IDentifier (GUID) for this SystemServices object.
Returns the filename associated with the specified application name.
applicationName | [in] TX application name. |
|
pure virtual |
Returns a message string formatted using a vsprintf-style format string and argument list.
formatID | [in] String resource identifier containing the format string. |
argList | [in] Argument list. |
|
virtual |
Assigns a value to this String object using a printf-style format string and arguments.
formatID | [in] String resource identifier containing the format string. |
|
pure virtual |
Get environment variable value.
varName | [in] Environment variable name. |
value | [out] Environment variable value. |
Returns the creation time of the specified file.
filename | [in] Filename. |
Returns the modification time of the specified file.
filename | [in] Filename. |
Returns the size of the specified file.
filename | [in] Filename. |
|
virtual |
Returns the unique name for temporary file.
|
virtual |
Returns the path to the temporary files folder.
|
virtual |
Returns user name in the requested format
|
virtual |
Inits/Uninits the modeler library (platform-dependent) module.
|
virtual |
Loads the specified physical (platform-dependent) module.
moduleFileName | [in] Module filename to load. |
silent | [in] If true, no load status message will be printed. |
|
static |
Loads the specified physical (platform-dependent) module.
moduleFileName | [in] Module filename to load. |
silent | [in] If true, no load status message will be printed. |
|
pure virtual |
Set environment variable value.
varName | [in] Environment variable name. |
newValue | [in] The new value of the environment variable. |
|
pure virtual |
Returns the system code page.
|
virtual |
|
virtual |
Unloads the specified physical (platform-dependent) module.
pModuleObj | [in] Pointer to the module object to be unloaded. |
|
virtual |
Displays in some manner the specified warning message.
warnVisGroup | [in] Group of warning message visibility (always visible if it is an empty). |
message | [in] Warning message. |
Displays in some manner the specified warning message.
message | [in] Warning message. |