|
| ODRX_DECLARE_MEMBERS (OdIfcHostAppServices) |
|
| OdIfcHostAppServices () |
|
virtual OdRxClass * | databaseClass () const |
|
virtual OdRxClass * | modelClass () const |
|
virtual OdIfc::OdIfcFilePtr | createDatabase (InitialSchema defaultContent=kScmUndefined) const |
|
virtual OdString | findFile (const OdString &filename, OdDbBaseDatabase *pDb=0, FindFileHint hint=kDefault) |
|
virtual const OdString | program () |
|
virtual const OdString | product () |
|
virtual const OdString | companyName () |
|
virtual const OdString | releaseMajorMinorString () |
|
virtual const OdString | versionString () |
|
virtual OdString | formatMessage (unsigned int errorCode,...) |
|
virtual OdString | getAlternateFontName () const |
|
virtual OdString | getFontMapFileName () const |
|
virtual OdString | getPreferableFont (const OdString &fontName, OdFontType fontType) |
|
virtual OdString | getSubstituteFont (const OdString &fontName, OdFontType fontType) |
|
virtual OdString | getSubstituteFontByChar (const OdFont &pFont, OdChar unicodeChar, OdDbBaseDatabase *pDb) |
|
virtual OdGsDevicePtr | gsBitmapDevice (OdRxObject *pViewObj=NULL, OdDbBaseDatabase *pDb=NULL, OdUInt32 flags=0) |
|
virtual OdIfc::OdIfcFilePtr | readFile (OdStreamBuf *pFileBuff) |
|
virtual OdIfc::OdIfcFilePtr | readFile (const OdString &file) |
|
virtual OdResult | brepBuilder (OdBrepBuilder &bbuilder, BrepType bbType) |
|
| ODRX_DECLARE_MEMBERS (OdDAIHostAppServicesBase) |
|
OdDAI::OdHeaderSectionPtr | getHeaderSection (const OdString &filename) |
|
| ODRX_DECLARE_MEMBERS (OdDbBaseHostAppServices) |
|
| OdDbBaseHostAppServices () |
|
virtual OdDbHostAppProgressMeter * | newProgressMeter () |
|
virtual void | releaseProgressMeter (OdDbHostAppProgressMeter *pProgressMeter) |
|
virtual ProdIdCode | prodcode () |
|
virtual int | releaseMajorVersion () |
|
virtual int | releaseMinorVersion () |
|
virtual void | warning (const OdString &message) |
|
virtual void | warning (const char *warnVisGroup, const OdString &message) |
|
virtual void | warning (OdWarning warningOb) |
|
virtual void | warning (const char *warnVisGroup, OdWarning warningOb) |
|
virtual OdString | getErrorDescription (unsigned int errorCode) |
|
virtual OdDbUndoControllerPtr | newUndoController () |
|
virtual OdStreamBufPtr | newUndoStream () |
|
virtual void | auditPrintReport (OdAuditInfo *pAuditInfo, const OdString &strLine, int printDest) const |
|
virtual bool | ttfFileNameByDescriptor (const OdTtfDescriptor &description, OdString &filename) |
|
virtual bool | getSystemFontFolders (OdStringArray &aDirs) |
|
virtual void | collectFilePathsInDirectory (OdStringArray &res, const OdString &sPath, const OdString &sFilter=L"*.*") |
|
virtual OdString | fileDialog (int flags, const OdString &dialogCaption=OdString::kEmpty, const OdString &defExt=OdString::kEmpty, const OdString &defFilename=OdString::kEmpty, const OdString &filter=OdString::kEmpty) |
|
virtual OdString | getTempPath () const |
|
virtual OdInt16 | getMtMode () const |
|
virtual int | numThreads (OdDb::MultiThreadedMode mtMode) |
|
| 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 |
|
Definition at line 38 of file IfcHostAppServices.h.
Searches for a specified file.
- Parameters
-
filename | [in] A name of the file to find. |
pDb | [in] A pointer to the database context. If the parameter value is equal to NULL, the file search is not related to a database. |
hint | [in] A hint that indicates the type of file that is required. |
- Returns
- Returns the full path to the found file; if the file was not found, the method returns an empty string.
The file name itself.
The current directory.
The drawing directory (for SHX font, image, and xref files).
The Windows fonts directory (only for TTF fonts on Windows platforms).
The hint parameter's value must be one of the following:
Value Description Extension kDefault 0 Any file. any kFontFile 1 Can be either SHX or TTF file. SHX or TTF kCompiledShapeFile 2 SHX file. SHX kTrueTypeFontFile 3 TTF file. TTF kEmbeddedImageFile 4 Image file. ISM kXRefDrawing 5 External reference file. kPatternFile 6 Pattern file (PAT). PAT kDRXApplication 7 DRX application file. DRX kFontMapFile 8 FontMap file. FMP
Implements OdDbBaseHostAppServices.