|
3Depict
|
#include <string>#include <vector>

Functions | |
| bool | genRandomFilename (std::string &s, bool timerInitRand=true) |
| std::string | boolStrEnc (bool b) |
| bool | boolStrDec (const std::string &s, bool &result) |
| void | ucharToHexStr (unsigned char c, std::string &s) |
| void | hexStrToUChar (const std::string &s, unsigned char &c) |
| std::string | choiceString (std::vector< std::pair< unsigned int, std::string > > comboString, unsigned int curChoice) |
| Generate string that can be parsed by wxPropertyGrid for combo control. More... | |
| void | choiceStringToVector (const std::string &str, std::vector< std::string > &choices, unsigned int &selected) |
| std::string | digitString (unsigned int thisDigit, unsigned int maxDigit) |
| Generate a string with leading digits up to maxDigit (eg, if maxDigit is 424, and thisDigit is 1. More... | |
| std::string | getActiveChoice (const std::string &choiceString) |
| Returns Choice from string (see choiceString(...) for string format) More... | |
| std::string | stripWhite (const std::string &str) |
| Strip whitespace, (eg tab,space) from either side of a string. More... | |
| std::string | stripChars (const std::string &Str, const char *chars) |
| std::string | lowercase (std::string s) |
| Return a lowercase version for a given string. More... | |
| std::string | uppercase (std::string s) |
| Return a uppercase version for a given string. More... | |
| void | stripZeroEntries (std::vector< std::string > &s) |
| bool | isVersionNumberString (const std::string &s) |
| std::string | getMaxVerStr (const std::vector< std::string > &verStrings) |
| Retrieve the maximum version string from a list of version strings. More... | |
| unsigned int | getVersionNumber (unsigned int major, unsigned int minor, unsigned int revision) |
| bool | parseVersion (const std::string &s, unsigned int &version) |
| void | splitStrsRef (const char *cpStr, const char delim, std::vector< std::string > &v) |
| Split string references using a single delimiter. More... | |
| void | splitStrsRef (const char *cpStr, const char *delim, std::vector< std::string > &v) |
| Split string references using any of a given string of delimiters. More... | |
| void | splitFileData (const std::string &filenameWithPath, std::string &path, std::string &basename, std::string &extension) |
| Split the file into three parts, base path, base name and file extension. More... | |
| std::string | onlyFilename (const std::string &path) |
| Return only the filename component. More... | |
| std::string | onlyDir (const std::string &path) |
| Return only the directory name component of the full path. More... | |
| std::string | convertFileStringToNative (const std::string &s) |
| Convert a path format into a native path from unix format. More... | |
| std::string | convertFileStringToCanonical (const std::string &s) |
| Convert a path format into a unix path from native format. More... | |
| std::string | tabs (unsigned int nTabs) |
| std::string | stlWStrToStlStr (const std::wstring &s) |
| std::wstring | stlStrToStlWStr (const std::string &s) |
| bool boolStrDec | ( | const std::string & | s, |
| bool & | result | ||
| ) |
References stripWhite().
Referenced by Filter::applyPropertyNow(), ConfigFile::read(), IonClipFilter::readState(), IonColourFilter::readState(), ExternalProgramFilter::readState(), BoundingBoxFilter::readState(), SpectrumPlotFilter::readState(), IonDownsampleFilter::readState(), AnnotateFilter::readState(), IonInfoFilter::readState(), RangeFileFilter::readState(), ProfileFilter::readState(), VoxeliseFilter::readState(), SpatialAnalysisFilter::readState(), RangeFileFilter::setProperty(), VoxeliseFilter::setProperty(), ClusterAnalysisFilter::setProperty(), SpatialAnalysisFilter::setProperty(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().

| std::string boolStrEnc | ( | bool | b | ) |
Referenced by IonClipFilter::getProperties(), IonColourFilter::getProperties(), ExternalProgramFilter::getProperties(), BoundingBoxFilter::getProperties(), SpectrumPlotFilter::getProperties(), AnnotateFilter::getProperties(), RangeFileFilter::getProperties(), ProfileFilter::getProperties(), VoxeliseFilter::getProperties(), ClusterAnalysisFilter::getProperties(), SpatialAnalysisFilter::getProperties(), CameraLookAt::getProperties(), AnalysisState::save(), ConfigFile::write(), IonColourFilter::writeState(), BoundingBoxFilter::writeState(), SpectrumPlotFilter::writeState(), RangeFileFilter::writeState(), VoxeliseFilter::writeState(), ClusterAnalysisFilter::writeState(), and SpatialAnalysisFilter::writeState().

| std::string choiceString | ( | std::vector< std::pair< unsigned int, std::string > > | comboString, |
| unsigned int | curChoice | ||
| ) |
Generate string that can be parsed by wxPropertyGrid for combo control.
| void choiceStringToVector | ( | const std::string & | str, |
| std::vector< std::string > & | choices, | ||
| unsigned int & | selected | ||
| ) |
References ASSERT, getMaxVerStr(), splitFileData(), splitStrsRef(), stream_cast(), and TEST.
Referenced by ExportAnimationDialog::OnFilterGridCellSelected(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().

| std::string convertFileStringToCanonical | ( | const std::string & | s | ) |
Convert a path format into a unix path from native format.
Referenced by ExternalProgramFilter::writeState(), RangeFileFilter::writeState(), DataLoadFilter::writeState(), and SpatialAnalysisFilter::writeState().

| std::string convertFileStringToNative | ( | const std::string & | s | ) |
Convert a path format into a native path from unix format.
Referenced by RangeFileFilter::readState(), DataLoadFilter::readState(), and SpatialAnalysisFilter::readState().

| std::string digitString | ( | unsigned int | thisDigit, |
| unsigned int | maxDigit | ||
| ) |
Generate a string with leading digits up to maxDigit (eg, if maxDigit is 424, and thisDigit is 1.
References stream_cast().
Referenced by BasicGLPane::saveImageSequence().

| bool genRandomFilename | ( | std::string & | s, |
| bool | timerInitRand = true |
||
| ) |
Referenced by filterTreeTests(), ExternalProgramFilter::getRefreshUseMask(), loadTapsimBinFile(), and TreeState::resetModifyLevel().

| std::string getActiveChoice | ( | const std::string & | choiceString | ) |
Returns Choice from string (see choiceString(...) for string format)
Returns Choice from string (see choiceString(...) for string format)
References ASSERT, splitStrsRef(), and stream_cast().
| std::string getMaxVerStr | ( | const std::vector< std::string > & | verStrings | ) |
Retrieve the maximum version string from a list of version strings.
References parseVersion().
Referenced by choiceStringToVector(), VersionCheckThread::Entry(), MainWindowFrame::OnCheckUpdatesThread(), and AnalysisState::save().

| unsigned int getVersionNumber | ( | unsigned int | major, |
| unsigned int | minor, | ||
| unsigned int | revision | ||
| ) |
References ASSERT.
Referenced by IonColourFilter::readState().

| void hexStrToUChar | ( | const std::string & | s, |
| unsigned char & | c | ||
| ) |
| bool isVersionNumberString | ( | const std::string & | s | ) |
Referenced by VersionCheckThread::Entry(), and parseVersion().

| std::string lowercase | ( | std::string | s | ) |
Return a lowercase version for a given string.
Referenced by RangeFile::detectFileType(), MainWindowFrame::guessFileType(), MainWindowFrame::OnFileExportPlot(), and MainWindowFrame::OnFileSaveAs().

| std::string onlyDir | ( | const std::string & | path | ) |
Return only the directory name component of the full path.
Referenced by AnalysisState::save(), and splitFileData().

| std::string onlyFilename | ( | const std::string & | path | ) |
Return only the filename component.
Referenced by ExternalProgramFilter::refresh(), FilterTree::saveXML(), and splitFileData().

| bool parseVersion | ( | const std::string & | s, |
| unsigned int & | version | ||
| ) |
References isVersionNumberString(), splitStrsRef(), and stream_cast().
Referenced by getMaxVerStr(), and AnalysisState::save().

| void splitFileData | ( | const std::string & | filenameWithPath, |
| std::string & | path, | ||
| std::string & | basename, | ||
| std::string & | extension | ||
| ) |
Split the file into three parts, base path, base name and file extension.
References onlyDir(), and onlyFilename().
Referenced by choiceStringToVector(), and FilterTree::saveXML().

| void splitStrsRef | ( | const char * | cpStr, |
| const char | delim, | ||
| std::vector< std::string > & | v | ||
| ) |
Split string references using a single delimiter.
Referenced by choiceStringToVector(), RangeFile::detectFileType(), getActiveChoice(), limitLoadTextFile(), loadTapsimBinFile(), loadTextData(), loadTextStringData(), ExternalProgramFilter::numBytesForCache(), Point3D::parse(), parseVersion(), readOps(), VoxeliseFilter::readState(), DataLoadFilter::readState(), and wxErrMsg().

| void splitStrsRef | ( | const char * | cpStr, |
| const char * | delim, | ||
| std::vector< std::string > & | v | ||
| ) |
Split string references using any of a given string of delimiters.
|
inline |
|
inline |
| std::string stripChars | ( | const std::string & | Str, |
| const char * | chars | ||
| ) |
Referenced by RangeFile::detectFileType(), and stripWhite().

| std::string stripWhite | ( | const std::string & | str | ) |
Strip whitespace, (eg tab,space) from either side of a string.
References stripChars().
Referenced by Filter::applyPropertyNow(), boolStrDec(), RangeFile::detectFileType(), MainWindowFrame::OnComboStashEnter(), Point3D::parse(), readOps(), AnnotateFilter::setProperty(), ClusterAnalysisFilter::setProperty(), SpatialAnalysisFilter::setProperty(), and wxErrMsg().

| void stripZeroEntries | ( | std::vector< std::string > & | s | ) |
Referenced by RangeFile::detectFileType(), limitLoadTextFile(), loadTextData(), and loadTextStringData().

|
inline |
Referenced by CameraLookAt::getNearPlane(), AnalysisState::save(), FilterTree::saveXML(), Camera::type(), ConfigFile::write(), writeIonsEnabledXML(), writeScalarsXML(), IonClipFilter::writeState(), IonColourFilter::writeState(), ExternalProgramFilter::writeState(), TransformFilter::writeState(), BoundingBoxFilter::writeState(), SpectrumPlotFilter::writeState(), IonDownsampleFilter::writeState(), FrameProperties::writeState(), AnnotateFilter::writeState(), RangeFileFilter::writeState(), IonInfoFilter::writeState(), BoxCropEffect::writeState(), ProfileFilter::writeState(), VoxeliseFilter::writeState(), DataLoadFilter::writeState(), ClusterAnalysisFilter::writeState(), AnaglyphEffect::writeState(), PropertyAnimator::writeState(), SpatialAnalysisFilter::writeState(), CameraLookAt::writeState(), and writeVectorsXML().

| void ucharToHexStr | ( | unsigned char | c, |
| std::string & | s | ||
| ) |
Referenced by ColourRGBA::rgbaString(), and ColourRGBA::rgbString().

| std::string uppercase | ( | std::string | s | ) |
Return a uppercase version for a given string.
Referenced by mglColourCode().

1.8.13