Back to FabImage Library website
You are here: Start » Function Reference » Path » Path Basics » SkipEmptyPath
| Header: | FIL.h |
|---|---|
| Namespace: | fil |
| Module: | FoundationLite |
If the input path has at least one point, then it is copied to the output; otherwise Nil is returned.
Applications: Secures against domain errors caused by empty paths, e.g. just before the PathBoundingBox filter is to be invoked.
Syntax
C++
C#
void fil::SkipEmptyPath ( const fil::Path& inPath, ftl::Conditional<fil::Path>& outNotEmptyPath, bool& outIsNotEmpty )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
outNotEmptyPath | Conditional<Path>& | A copy of the input path, if it is not empty, or Nil otherwise | |
![]() |
outIsNotEmpty | bool& | Indication if the input path is not empty |


