Utility class providing static methods for common validation operations used across DataExchange providers. Includes validation for configuration nodes, file paths, streams, and other common scenarios with optional verbose error reporting.
More...
|
| static bool | ValidateConfigurationNode (const occ::handle< DE_ConfigurationNode > &theNode, const occ::handle< Standard_Type > &theExpectedType, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Validates that configuration node is not null and matches expected type.
|
| |
| static bool | ValidateFileForReading (const TCollection_AsciiString &thePath, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Checks if file exists and is readable.
|
| |
| static bool | ValidateFileForWriting (const TCollection_AsciiString &thePath, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Checks if file location is writable (file may or may not exist)
|
| |
| static bool | ValidateReadStreamList (const DE_Provider::ReadStreamList &theStreams, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Validates read stream list, warns if multiple streams.
|
| |
| static bool | ValidateWriteStreamList (DE_Provider::WriteStreamList &theStreams, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Validates write stream list, warns if multiple streams.
|
| |
| static bool | ValidateDocument (const occ::handle< TDocStd_Document > &theDocument, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Validates that TDocStd_Document handle is not null.
|
| |
| static bool | WarnLengthUnitNotSupported (const double theLengthUnit, const TCollection_AsciiString &theContext, const bool theIsVerbose=true) |
| | Sends warning when format doesn't support length unit scaling.
|
| |
| static bool | CreateContentBuffer (const TCollection_AsciiString &thePath, occ::handle< NCollection_Buffer > &theBuffer) |
| | Creates buffer by reading from file stream for content checking.
|
| |
| static bool | CreateContentBuffer (std::istream &theStream, occ::handle< NCollection_Buffer > &theBuffer) |
| | Creates buffer by reading from input stream for content checking.
|
| |
Utility class providing static methods for common validation operations used across DataExchange providers. Includes validation for configuration nodes, file paths, streams, and other common scenarios with optional verbose error reporting.