Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JText Struct Reference

Auxiliary data structure for line. More...

Public Attributes

double x1
 
double y1
 
std::string text
 

Friends

std::istream & operator>> (std::istream &in, JText &text)
 Read text from input stream.
 
std::ostream & operator<< (std::ostream &out, const JText &text)
 Write text to output stream.
 

Detailed Description

Auxiliary data structure for line.

Definition at line 17 of file JText.cc.

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JText & text )
friend

Read text from input stream.

Parameters
ininput stream
texttext
Returns
input stream

Definition at line 26 of file JText.cc.

27 {
28 in >> text.x1 >> text.y1;
29
30 return getline(in, text.text);
31 }
char text[TEXT_SIZE]
Definition elog.cc:72
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Definition JString.hh:478

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JText & text )
friend

Write text to output stream.

Parameters
outoutput stream
texttext
Returns
output stream

Definition at line 40 of file JText.cc.

41 {
42 return out << text.x1 << ' ' << text.y1 << ' ' << text.text;
43 }

Member Data Documentation

◆ x1

double JText::x1

Definition at line 45 of file JText.cc.

◆ y1

double JText::y1

Definition at line 46 of file JText.cc.

◆ text

std::string JText::text

Definition at line 47 of file JText.cc.


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