3Depict
|
Functions | |
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 | isVersionNumberString (const std::string &s) |
bool | parseVersion (const std::string &s, unsigned int &version) |
bool | boolStrDec (const std::string &s, bool &b) |
void | splitFileData (const std::string &fileWithPath, 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 | convertFileStringToCanonical (const std::string &s) |
Convert a path format into a unix path from native format. More... | |
std::string | convertFileStringToNative (const std::string &s) |
Convert a path format into a native path from unix format. More... | |
bool | genRandomFilename (std::string &s, bool seedRand) |
void | nullifyMarker (char *buffer, char marker) |
Replace first instance of marker with null terminator. More... | |
void | ucharToHexStr (unsigned char c, std::string &s) |
void | hexStrToUChar (const std::string &s, unsigned char &c) |
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 | choiceString (std::vector< std::pair< unsigned int, std::string > > comboString, unsigned int curChoice) |
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) |
void | stripZeroEntries (std::vector< std::string > &sVec) |
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 | splitStrsRef (const char *cpStr, const char delim, std::vector< string > &v) |
Split string references using a single delimiter. More... | |
void | splitStrsRef (const char *cpStr, const char *delim, std::vector< string > &v) |
Split string references using any of a given string of delimiters. More... | |
std::string | getActiveChoice (const std::string &choiceString) |
Returns Choice ID from string (see choiceString(...) for string format) More... | |
void | choiceStringToVector (const std::string &choiceString, std::vector< std::string > &choices, unsigned int &selected) |
bool boolStrDec | ( | const std::string & | s, |
bool & | b | ||
) |
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 choiceString | ( | std::vector< std::pair< unsigned int, std::string > > | comboString, |
unsigned int | curChoice | ||
) |
References ASSERT, and stream_cast().
Referenced by IonClipFilter::getProperties(), IonColourFilter::getProperties(), TransformFilter::getProperties(), SpectrumPlotFilter::getProperties(), BoundingBoxFilter::getProperties(), AnnotateFilter::getProperties(), IonInfoFilter::getProperties(), ProfileFilter::getProperties(), VoxeliseFilter::getProperties(), DataLoadFilter::getProperties(), ClusterAnalysisFilter::getProperties(), SpatialAnalysisFilter::getProperties(), and CameraLookAt::getProperties().
void choiceStringToVector | ( | const std::string & | choiceString, |
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 | seedRand | ||
) |
Referenced by filterTreeTests(), ExternalProgramFilter::getRefreshUseMask(), loadTapsimBinFile(), and TreeState::resetModifyLevel().
std::string getActiveChoice | ( | const std::string & | choiceString | ) |
Returns Choice ID 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().
void nullifyMarker | ( | char * | buffer, |
char | marker | ||
) |
Replace first instance of marker with null terminator.
Referenced by RangeFile::detectFileType(), and stream_cast().
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 & | fileWithPath, |
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< 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< string > & | v | ||
) |
Split string references using any of a given string of delimiters.
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 > & | sVec | ) |
Referenced by RangeFile::detectFileType(), limitLoadTextFile(), loadTextData(), and loadTextStringData().
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().