VTK  9.4.20241218
Classes | Macros | Enumerations | Functions
vtkResourceParser.h File Reference
#include "vtkIOCoreModule.h"
#include "vtkObject.h"
#include "vtkResourceStream.h"
#include "vtkSmartPointer.h"
#include <array>
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <limits>
#include <memory>
#include <string>
#include <type_traits>
Include dependency graph for vtkResourceParser.h:

Go to the source code of this file.

Classes

class  vtkResourceParser
 Helper class to perform formatted input from vtkResourceStream. More...
 
struct  vtkResourceParser::ReadToResult< It >
 Structure returned by Read*To functions. More...
 

Macros

#define DECLARE_PARSE_EXTERN_TEMPLATE(type)
 

Enumerations

enum class  vtkParseResult : std::int32_t {
  Error = -1 , Ok = 0 , EndOfStream = 1 , EndOfLine = 2 ,
  Limit = 3
}
 Result of a vtkResouceParser parsing operation. More...
 

Functions

 DECLARE_PARSE_EXTERN_TEMPLATE (char)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (signed char)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (unsigned char)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (short)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (unsigned short)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (int)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (unsigned int)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (long)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (unsigned long)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (long long)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (unsigned long long)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (float)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (double)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (bool)
 
 DECLARE_PARSE_EXTERN_TEMPLATE (std::string)
 

Macro Definition Documentation

◆ DECLARE_PARSE_EXTERN_TEMPLATE

#define DECLARE_PARSE_EXTERN_TEMPLATE (   type)
Value:
extern template VTKIOCORE_EXPORT vtkParseResult \
vtkResourceParser::vtkParserContext::Parse<type>(type&, const PredicateType& discardPred)

Definition at line 537 of file vtkResourceParser.h.

Enumeration Type Documentation

◆ vtkParseResult

enum class vtkParseResult : std::int32_t
strong

Result of a vtkResouceParser parsing operation.

This enumeration gives information about what the parsing operation did. When doing basic parsing, you may just need to check result != vtkParseResult::Ok.

For more complex parsing, you can configure the parser to stop on newlines

Enumerator
Error 
Ok 
EndOfStream 
EndOfLine 
Limit 

Definition at line 32 of file vtkResourceParser.h.

Function Documentation

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [1/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( char  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [2/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( signed char  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [3/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( unsigned char  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [4/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( short  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [5/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( unsigned short  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [6/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( int  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [7/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( unsigned int  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [8/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( long  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [9/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( unsigned long  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [10/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( long long  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [11/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( unsigned long long  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [12/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( float  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [13/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( double  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [14/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( bool  )

◆ DECLARE_PARSE_EXTERN_TEMPLATE() [15/15]

DECLARE_PARSE_EXTERN_TEMPLATE ( std::string  )