Rhino C++ API
8.13
|
#include <RhRdkPlugIn.h>
Public Member Functions | |
CRhRdkFileType (const wchar_t *wszType=nullptr, const wchar_t *wszDescription=nullptr) | |
void | AddFileExtension (const wchar_t *wszExtension) |
const ON_wString & | Description (void) const |
const ON_wString & | FileType (void) const |
bool | HasFileExtension (const wchar_t *wszExtension) const |
ON_wString | MakeFileExtensionPattern (void) const |
Represents a file type. A file type can have multiple file extensions.
CRhRdkFileType::CRhRdkFileType | ( | const wchar_t * | wszType = nullptr , |
const wchar_t * | wszDescription = nullptr |
||
) |
void CRhRdkFileType::AddFileExtension | ( | const wchar_t * | wszExtension | ) |
Add a file extension to the type. Do not include the period. e.g., "mytype"
const ON_wString& CRhRdkFileType::Description | ( | void | ) | const |
Get the localized description of the file type. e.g., Description for type "MYTYPE" could be "My file type".
const ON_wString& CRhRdkFileType::FileType | ( | void | ) | const |
Get the file type. This is a string that uniquely identifies the type (e.g., "MYTYPE").
bool CRhRdkFileType::HasFileExtension | ( | const wchar_t * | wszExtension | ) | const |
wszExtension | is the extension to check. |
ON_wString CRhRdkFileType::MakeFileExtensionPattern | ( | void | ) | const |