ReactOS  0.4.14-dev-297-g23e575c
vartype Class Reference

Public Member Functions

 vartype (const std::string &typestr)
 
 vartype (const vartype &other)
 
vartypeoperator= (const vartype &other)
 

Public Attributes

std::string c_type
 
std::string len
 
std::string lit_value
 

Detailed Description

Definition at line 18 of file ofw_interface.cpp.

Constructor & Destructor Documentation

◆ vartype() [1/2]

vartype::vartype ( const std::string typestr)
inline

Definition at line 20 of file ofw_interface.cpp.

20  {
21  size_t amp = typestr.find('&');
22  size_t col = typestr.find(':');
23  if( amp != std::string::npos ) {
24  if( col > amp && col != std::string::npos )
25  lit_value = typestr.substr(amp+1,col-amp+1);
26  else lit_value = typestr.substr(amp+1);
27  }
28  if( col != std::string::npos ) {
29  if( amp > col && amp != std::string::npos )
30  len = typestr.substr(col+1,amp-col+1);
31  else len = typestr.substr(col+1);
32  }
33 
34  if( amp != std::string::npos && amp < col ) col = amp;
35  if( col == std::string::npos ) col = typestr.size();
36  c_type = typestr.substr(0,col);
37  }
static const size_t npos
Definition: _string_npos.h:26
std::string lit_value
GLenum GLsizei len
Definition: glext.h:6722
std::string c_type

◆ vartype() [2/2]

vartype::vartype ( const vartype other)
inline

Definition at line 39 of file ofw_interface.cpp.

40  : c_type(other.c_type),
41  len(other.len),
42  lit_value(other.lit_value) {
43  }
int other
Definition: msacm.c:1376
std::string lit_value
std::string len
std::string c_type

Member Function Documentation

◆ operator=()

vartype& vartype::operator= ( const vartype other)
inline

Definition at line 45 of file ofw_interface.cpp.

45  {
46  c_type = other.c_type;
47  len = other.len;
48  lit_value = other.lit_value;
49  return *this;
50  }
int other
Definition: msacm.c:1376
std::string lit_value
GLenum GLsizei len
Definition: glext.h:6722
std::string c_type

Member Data Documentation

◆ c_type

std::string vartype::c_type

Definition at line 52 of file ofw_interface.cpp.

Referenced by operator=(), and vartype().

◆ len

std::string vartype::len

Definition at line 53 of file ofw_interface.cpp.

◆ lit_value

std::string vartype::lit_value

Definition at line 54 of file ofw_interface.cpp.

Referenced by operator=(), and vartype().


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