ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions
prtx::FileExtensions Class Reference

#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 WStringVectoritems () const
 
FileExtensionsoperator= (const FileExtensions &other)
 
const std::wstring & toString () const
 

Detailed Description

Helper class representing a list of file extensions. Instances of this class are immutable.

Constructor & Destructor Documentation

◆ FileExtensions() [1/2]

prtx::FileExtensions::FileExtensions ( const std::wstring &  e)

Initializes the instance with exactly one extension. e must begin with a dot.

◆ FileExtensions() [2/2]

prtx::FileExtensions::FileExtensions ( const WStringVector v)

Initializes the instance with an arbitrary number of extensions. All extensions must begin with a dot.

Member Function Documentation

◆ contains()

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.

◆ item()

const std::wstring& prtx::FileExtensions::item ( size_t  i) const

Helper to get reference to one extension item.

◆ items()

const WStringVector& prtx::FileExtensions::items ( ) const

Returns a reference to the extension list.

◆ toString()

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.


The documentation for this class was generated from the following file: