ArcGIS Procedural Runtime
3.2.10650
|
#include <FileExtensions.h>
Public Member Functions | |
bool | contains (const std::wstring &e) const |
FileExtensions (const FileExtensions &other) | |
FileExtensions (const std::wstring &e) | |
FileExtensions (const WStringVector &v) | |
const std::wstring & | item (size_t i) const |
const WStringVector & | items () const |
FileExtensions & | operator= (const FileExtensions &other) |
const std::wstring & | toString () const |
Helper class representing a list of file extensions. Instances of this class are immutable.
prtx::FileExtensions::FileExtensions | ( | const std::wstring & | e | ) |
Initializes the instance with exactly one extension. e must begin with a dot.
prtx::FileExtensions::FileExtensions | ( | const WStringVector & | v | ) |
Initializes the instance with an arbitrary number of extensions. All extensions must begin with a dot.
bool prtx::FileExtensions::contains | ( | const std::wstring & | e | ) | const |
Returns true if e is found in the list of known extensions. e must begin with a dot.
const std::wstring& prtx::FileExtensions::item | ( | size_t | i | ) | const |
Helper to get reference to one extension item.
const WStringVector& prtx::FileExtensions::items | ( | ) | const |
Returns a reference to the extension list.
const std::wstring& prtx::FileExtensions::toString | ( | ) | const |
Returns a string representation of the extension list. Each extension is delimited with a semi-colon, also if there is only one extension.