HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DS_Stream Class Reference

#include <DS_Stream.h>

+ Inheritance diagram for DS_Stream:

Public Member Functions

 DS_Stream (const char *filename, int pathvar=-1)
 
 DS_Stream (UT_IStream &is, const char *filename="<internal>", bool fordisablewhen=false)
 
 ~DS_Stream () override
 
int getOpenBrace ()
 
int parseBlock (UT_String &block, char delimiter= '\n', bool quote_tokens=false)
 
int getToken (UT_String &token)
 
int getErrorMessages (UT_String &str, UT_ErrorSeverity s=UT_ERROR_NONE)
 
void clearErrors ()
 
void stealErrors (DS_Stream &src)
 
UT_ErrorSeverity getErrorSeverity ()
 
void message (const char *m)
 
void warning (const char *m)
 
void error (const char *m)
 
- Public Member Functions inherited from CPP_TokenStream
 CPP_TokenStream (const char *filename, int pathvar=-1, const char **cpp_options=0)
 
 CPP_TokenStream (UT_IStream &is, const char *filename="<internal>", const char **cpp_options=0)
 
virtual ~CPP_TokenStream ()
 
void addIncludePath (const char *path)
 
void addIncludePathRaw (const char *path)
 
void setCPPOptions (const char **cpp_options)
 Set additional CPP options. More...
 
int getLineNumber ()
 
const char * getFileName ()
 
void setPreserveBackslashes (bool flag)
 
int getToken (UT_String &token)
 
void ungetToken (const UT_String &token)
 
virtual void cppError (const char *message) const
 
virtual void cppWarning (const char *message) const
 

Additional Inherited Members

- Protected Member Functions inherited from CPP_TokenStream
void init (int pathvar, const char **cpp_options)
 
- Protected Attributes inherited from CPP_TokenStream
UT_WorkArgs myArgs
 
UT_WorkBuffer myArgBuf
 
UT_String myUnget
 
CPP_Manager * myCPP
 
int myOptind
 
bool myPreserveBackslashes
 

Detailed Description

Definition at line 25 of file DS_Stream.h.

Constructor & Destructor Documentation

DS_Stream::DS_Stream ( const char *  filename,
int  pathvar = -1 
)
DS_Stream::DS_Stream ( UT_IStream is,
const char *  filename = "<internal>",
bool  fordisablewhen = false 
)
DS_Stream::~DS_Stream ( )
override

Member Function Documentation

void DS_Stream::clearErrors ( )
inline

Definition at line 46 of file DS_Stream.h.

void DS_Stream::error ( const char *  m)
int DS_Stream::getErrorMessages ( UT_String str,
UT_ErrorSeverity  s = UT_ERROR_NONE 
)
inline

Definition at line 43 of file DS_Stream.h.

UT_ErrorSeverity DS_Stream::getErrorSeverity ( )
inline

Definition at line 52 of file DS_Stream.h.

int DS_Stream::getOpenBrace ( )
int DS_Stream::getToken ( UT_String token)
void DS_Stream::message ( const char *  m)
int DS_Stream::parseBlock ( UT_String block,
char  delimiter = '\n',
bool  quote_tokens = false 
)
void DS_Stream::stealErrors ( DS_Stream src)
inline

Definition at line 49 of file DS_Stream.h.

void DS_Stream::warning ( const char *  m)

The documentation for this class was generated from the following file: