openfoam/applications/utilities/mesh/manipulation
Mark Olesen b060378dca ENH: improve consistency of fileName handling windows/non-windows (#2057)
- wrap command-line retrieval of fileName with an implicit validate.

  Instead of this:
      fileName input(args[1]);
      fileName other(args["someopt"]);

  Now use this:
      auto input = args.get<fileName>(1);
      auto other = args.get<fileName>("someopt");

  which adds a fileName::validate on the inputs

  Because of how it is implemented, it will automatically also apply
  to argList getOrDefault<fileName>, readIfPresent<fileName> etc.

- adjust fileName::validate and clean to handle backslash conversion.
  This makes it easier to ensure that path names arising from MS-Windows
  are consistently handled internally.

- dictionarySearch: now check for initial '/' directly instead of
  relying on fileName isAbsolute(), which now does more things

BREAKING: remove fileName::clean() const method

- relying on const/non-const to control the behaviour (inplace change
  or return a copy) is too fragile and the const version was
  almost never used.

  Replace:
      fileName sanitized = constPath.clean();

  With:
      fileName sanitized(constPath);
      sanitized.clean());

STYLE: test empty() instead of comparing with fileName::null
2021-04-19 16:33:42 +00:00
..
attachMesh GIT: Header file updates 2019-10-31 14:48:44 +00:00
autoPatch GIT: Header file updates 2019-10-31 14:48:44 +00:00
checkMesh ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
createBaffles ENH: unify use of dictionary method names 2020-06-02 17:26:03 +02:00
createPatch ENH: use concise forms for walking processor and cyclic boundaries 2021-02-09 17:57:49 +01:00
deformedGeom GIT: Header file updates 2019-10-31 14:48:44 +00:00
flattenMesh GIT: Header file updates 2019-10-31 14:48:44 +00:00
insideCells ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
mergeMeshes ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
mergeOrSplitBaffles BUG: mergeOrSplitBaffles -dict option ignored (fixes #1759) 2020-07-01 18:41:31 +02:00
mirrorMesh STYLE: use Time::printExecutionTime() method 2020-08-07 09:24:56 +02:00
moveDynamicMesh ENH: use concise forms for walking processor and cyclic boundaries 2021-02-09 17:57:49 +01:00
moveEngineMesh GIT: Header file updates 2019-10-31 14:48:44 +00:00
moveMesh ENH: add moveMesh -deltaT option 2020-06-10 15:29:07 +02:00
objToVTK ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
orientFaceZone GIT: Header file updates 2019-10-31 14:48:44 +00:00
polyDualMesh ENH: List/DynamicList appendUniq() method 2021-04-19 16:33:42 +00:00
refineMesh GIT: remove leading/trailing blank lines, trailing whitespace 2020-06-17 10:46:26 +02:00
renumberMesh ENH: provide setter methods for IOobject read/write options etc. 2021-03-17 15:10:00 +01:00
rotateMesh Merge commit 'e9219558d7' into develop-v1906 2019-12-05 11:47:19 +00:00
setSet ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
setsToZones ENH: provide setter methods for IOobject read/write options etc. 2021-03-17 15:10:00 +01:00
singleCellMesh ENH: provide setter methods for IOobject read/write options etc. 2021-03-17 15:10:00 +01:00
splitMesh GIT: Header file updates 2019-10-31 14:48:44 +00:00
splitMeshRegions ENH: provide setter methods for IOobject read/write options etc. 2021-03-17 15:10:00 +01:00
stitchMesh ENH: report dictionary name actually used (for -dict option) 2020-06-02 14:29:36 +02:00
subsetMesh STYLE: use brace constructors for Foam::zero and Foam::one 2020-11-19 16:57:45 +01:00
topoSet STYLE: check autoPtr as plain bool instead of valid() 2020-07-16 11:39:24 +02:00
transformPoints BUG: transformPoints flagged zero or negative scaling as an error 2020-11-26 01:04:55 +01:00
zipUpMesh GIT: Header file updates 2019-10-31 14:48:44 +00:00