appkit  1.5.1
RoadNarrows Robotics Application Kit
rnr Namespace Reference

RoadNarrows Robotics. More...

Namespaces

 chronos
 Chronos - God of Time.
 
 cmd
 Commands.
 
 io
 Input/Output.
 
 str
 String.
 

Classes

class  Camera
 Camera base class. More...
 
class  CameraCv
 OpenCv implementation of the camera class. The video is streamed via OpenCv calls. More...
 
class  CameraGst
 GStreamer implementation of the camera class. The video is streamed via a Gstreamer/GTK callback mechanism. More...
 
struct  CamRes
 Camera resolution structure. More...
 
struct  lbmanip_bm_
 LogBook parametric bookmark stream manipulator structure. More...
 
struct  lbmanip_fg_
 LogBook parametric formatting flags manipulator structure. More...
 
class  LogBook
 
class  Random
 Random variable generators class. More...
 
class  RegEx
 Regular Express Class. More...
 
class  Session
 Session Class. More...
 
class  SessionWin
 
class  State
 
class  StateCvCamera
 
class  StateEvent
 
class  StateGstCamera
 
class  StateImage
 
class  StateKb
 
class  StateMach
 Finite State Machine Class. More...
 
class  StateWin
 
class  StateWinCamera
 
class  Thread
 
class  Win
 RNR Win window abstract base class. More...
 
class  WinButton
 Window button base class. More...
 
class  WinButtonMenu
 Window button menu base class. More...
 
class  WinCvIoI
 
class  WinCvMouse
 Window OpenCV Mouse base class. More...
 
class  WinGtk
 WinGtk window derived class. More...
 
class  WinGtkButton
 GTK window derived button class. More...
 
class  WinGtkButtonMenu
 GTK window derived button menu class. More...
 
class  Xml
 XML base class. More...
 

Typedefs

typedef void(* MouseCbFunc_T) (int cv_event, int x, int y, int flags, void *user_data)
 Mouse Callback Function Type. More...
 
typedef void(* KeyCbFunc_T) (int code, int state, void *user_data)
 Keyboard Callback Function Type. More...
 
typedef void(* BttnCbFunc_T) (int nBttnId, void *user_data)
 Menu button Callback Function Type. More...
 

Enumerations

enum  AlignOp {
  AlignOpDefault,
  AlignOpLeft,
  AlignOpCenter,
  AlignOpRight
}
 
enum  RotOp {
  RotOp0,
  RotOp90,
  RotOp180,
  RotOp270
}
 
enum  UIEvent {
  UIEventNone,
  UIEventClick,
  UIEventDragStart,
  UIEventDragging,
  UIEventDragEnd,
  UIEventNumOf
}
 
enum  WidgetState {
  WidgetStateNormal,
  WidgetStateActive,
  WidgetStateDisabled,
  WidgetStateNumOf
}
 
enum  WinButtonType {
  WinButtonTypeImage,
  WinButtonTypeLabel
}
 Window button types. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const LogBook &log)
 Stream insertion operator. More...
 
LogBookeoe (LogBook &log)
 LogBook end-of-entry stream manipulator. More...
 
LogBookbookmark (LogBook &log)
 LogBook bookmark stream manipulator. More...
 
lbmanip_bm_ bookmark (const std::string str)
 LogBook bookmark parametric manipulator function. More...
 
LogBookoperator<< (LogBook &log, lbmanip_bm_ f)
 LogBook bookmark parametric manipulator stream operators. More...
 
lbmanip_fg_ setflags (const unsigned flags)
 LogBook formatting flags parametric manipulator function. More...
 
LogBookoperator<< (LogBook &log, lbmanip_fg_ f)
 LogBook formatting flags parametric manipulator stream operators. More...
 
std::ostream & operator<< (std::ostream &os, const RegEx &re)
 Insert object into output stream. More...
 
std::istream & operator>> (std::istream &is, RegEx &re)
 Extract from input stream to object. More...
 
const cv::Point nopoint (-1,-1)
 integer 2D "No Point"
 
const cv::Point2f nopoint2D (-1.0,-1.0)
 fpn 2D "No Point"
 
const cv::Point3f nopoint3D (-1.0,-1.0,-1.0)
 fpn 3D "No Point"
 
bool isnopoint (const cv::Point &pt)
 Check if point is not set ("no point"). More...
 
bool isnopoint (const cv::Point2f &pt)
 Check if point is not set ("no point"). More...
 
bool isnopoint (const cv::Point3f &pt)
 Check if point is not set ("no point"). More...
 
int distL1 (const cv::Point &p1, const cv::Point &p2)
 Calculate the L1 (taxi cab) distance between two 2D points. More...
 
int distL1 (const cv::Point2f &p1, const cv::Point2f &p2)
 Calculate the L1 (taxi cab) distance between two 2D points. More...
 
int distL1 (const cv::Point3f &p1, const cv::Point3f &p2)
 Calculate the L1 (taxi cab) distance between two 3D points. More...
 
int distL2 (const cv::Point &p1, const cv::Point &p2)
 Calculate the L2 (euclidean) distance between two 2D points. More...
 
double distL2 (const cv::Point2f &p1, const cv::Point2f &p2)
 Calculate the L2 (euclidean) distance between two 2D points. More...
 
double distL2 (const cv::Point3f &p1, const cv::Point3f &p2)
 Calculate the L2 (euclidean) distance between two 3D points. More...
 
int distLinf (const cv::Point &p1, const cv::Point &p2)
 Calculate the Linf distance between two 2D points. More...
 
int distLinf (const cv::Point2f &p1, const cv::Point2f &p2)
 Calculate the Linf distance between two 2D points. More...
 
int distLinf (const cv::Point3f &p1, const cv::Point3f &p2)
 Calculate the Linf distance between two 3D points. More...
 
bool isinrect (int x, int y, cv::Rect &r)
 Check if point x,y is with rectangle r. More...
 
cv::Size ar43width (cv::Size &siz)
 Calculate the nearest 4:3 aspect ratio from the width component of the target size. More...
 
cv::Size ar43width (int width)
 Calculate the nearest 4:3 aspect ratio from the target width. More...
 
cv::Size ar43height (cv::Size &siz)
 Calculate the nearest 4:3 aspect ratio from the height component of the target size. More...
 
cv::Size ar43height (int height)
 Calculate the nearest 4:3 aspect ratio from the target height. More...
 
void dbgrect (const std::string &str, const cv::Rect &r)
 Debug print rectangle. More...
 
void dbgpoint (const std::string &str, const cv::Point &pt)
 Debug print point. More...
 
void dbgsize (const std::string &str, const cv::Size &siz)
 Debug print size. More...
 

Variables

const CamRes CamResUndef = { -1, -1}
 Common 4:3 aspect ratio camera resolutions. More...
 
const CamRes CamResDft = { 0, 0}
 default resolution
 
const CamRes CamResQVGA = { 320, 240}
 Quarter VGA 320 x 240 res.
 
const CamRes CamResVGA = { 640, 480}
 VGA 640 x 480 resolution.
 
const CamRes CamRes1024x768 = {1024, 768}
 1024 x 768 resolution
 
const CamRes CamRes1440x1080 = {1440, 1080}
 1440 x 1080 resolution
 
const CamRes CamRes1600x1200 = {1600, 1200}
 1600 x 1200 resolution
 
const CamRes CamRes2048x1536 = {2048, 1536}
 2048 x 1536 resolution
 
const CamRes CamRes2592x1944 = {2592, 1944}
 2592 x 1944 resolution
 
const CamRes CamRes1280x800 = {1280, 800}
 Common 16:10 aspect ratio camera resolutions. More...
 
const CamRes CamRes1440x900 = {1440, 900}
 1440 x 900 resolution
 
const CamRes CamRes1280x720 = {1280, 720}
 Common ~16:9 aspect ratio camera resolutions. More...
 
const CamRes CamRes1920x1080 = {1920, 1080}
 1920 x 1080 resolution
 
const char *const VideoDevDft = "/dev/video0"
 Default video device. More...
 
const int VideoIndexDft = 0
 default video index
 
const int VideoDevMajor = 81
 major device number
 
const char *const GuiStrColorWinBg = "#000000"
 window bg color
 
const char *const GuiStrColorStatusFg = "#fed700"
 status fg color
 
const char *const GuiStrColorStatusBg = "#000000"
 status bg color
 
const char *const GuiStrColorStatusBorder = "#aa0000"
 status border
 
const char *const GuiStrColorBttnBg = "#e6e6e6"
 button bg color
 
const char *const GuiStrColorTextFg = "#ffffff"
 text fg color
 
const char *const GuiStrColorTextBg = "#000000"
 text bg color
 
const char *const GuiStrColorImageBg = "#ffffff"
 image bg color
 
const char *const GuiStrColorRNRed = "#aa0000"
 RN red.
 
const char *const GuiStrColorRNBlack = "#000000"
 RN black.
 
const char *const GuiStrColorRNWhite = "#ffffff"
 RN white.
 
const char *const GuiStrColorRNYellow = "#fed700"
 RN yellow.
 
const char *const GuiStrFontLarge = "Arial 20"
 large font
 
const char *const GuiStrFontMedium = "Arial 15"
 medium font
 
const char *const GuiStrFontSmall = "Arial 12"
 small font
 
const char *const GuiStrFontTiny = "Arial 8"
 tiny font
 
const char *const WinIconDirDft = "/prj/share/appkit/images/icons"
 
const char *const XmlDecl = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
 
const char *const XmlNsXsi
 
const char *const XslDecl
 

Detailed Description

RoadNarrows Robotics.

Typedef Documentation

typedef void(* rnr::BttnCbFunc_T) (int nBttnId, void *user_data)

Menu button Callback Function Type.

User-supplied callback function on menu button pushes.

Parameters
nButtnIdButton id.
user_dataUser-supplied data.

Definition at line 179 of file Win.h.

typedef void(* rnr::KeyCbFunc_T) (int code, int state, void *user_data)

Keyboard Callback Function Type.

User-supplied callback function on keyboard events.

Parameters
codeKeyboard code.
stateKeyboard state.
user_dataUser-supplied data.

Definition at line 169 of file Win.h.

typedef void(* rnr::MouseCbFunc_T) (int cv_event, int x, int y, int flags, void *user_data)

Mouse Callback Function Type.

User-supplied callback function. The callback is called on mouse events focused on an OpenCV image widget.

Typical user-defined mouse events are select a region, drag, and draw.

Parameters
cv_eventOpenCv defined events. See CV_EVENT_*.
xMouse x pixel coordinate relative to upper left image widget.
yMouse y pixel coordinate relative to upper left image widget.
Windowingsystem specific flags.
user_dataUser-supplied data.

Definition at line 154 of file Win.h.

Enumeration Type Documentation

Window button types.

Enumerator
WinButtonTypeImage 

button has image(s)

WinButtonTypeLabel 

button has text label(s)

Definition at line 81 of file WinMenu.h.

82  {
83  WinButtonTypeImage, ///< button has image(s)
84  WinButtonTypeLabel ///< button has text label(s)
85  };
button has text label(s)
Definition: WinMenu.h:84
button has image(s)
Definition: WinMenu.h:83

Function Documentation

cv::Size rnr::ar43height ( cv::Size &  siz)
inline

Calculate the nearest 4:3 aspect ratio from the height component of the target size.

Parameters
sizTarget object dimensions.
Returns
4:3 dimensions ≤ siz

Definition at line 307 of file WinOpenCv.h.

Referenced by rnr::WinCvIoI::calcMaxFit43().

308  {
309  cv::Size siz43;
310  int h = siz.height;
311  int r = h % 3;
312  siz43.width = (4 * (h-r)) / 3;
313  siz43.height = (3 * siz43.width) / 4;
314  return siz43;
315  }
cv::Size rnr::ar43height ( int  height)
inline

Calculate the nearest 4:3 aspect ratio from the target height.

Parameters
heightTarget height.
Returns
4:3 dimensions with height ≤ target height.

Definition at line 324 of file WinOpenCv.h.

325  {
326  cv::Size siz43;
327  int h = height;
328  int r = h % 3;
329  siz43.width = (4 * (h-r)) / 3;
330  siz43.height = (3 * siz43.width) / 4;
331  return siz43;
332  }
cv::Size rnr::ar43width ( cv::Size &  siz)
inline

Calculate the nearest 4:3 aspect ratio from the width component of the target size.

Parameters
sizTarget object dimensions.
Returns
The 4:3 dimensions ≤ target siz.

Definition at line 272 of file WinOpenCv.h.

Referenced by rnr::WinCvIoI::calcMaxFit43().

273  {
274  cv::Size siz43;
275  int w = siz.width;
276  int r = w % 4;
277  siz43.height = (3 * (w-r)) / 4;
278  siz43.width = (4 * siz43.height) / 3;
279  return siz43;
280  }
cv::Size rnr::ar43width ( int  width)
inline

Calculate the nearest 4:3 aspect ratio from the target width.

Parameters
widthTarget width
Returns
The 4:3 dimension with width ≤ target width.

Definition at line 289 of file WinOpenCv.h.

290  {
291  cv::Size siz43;
292  int w = width;
293  int r = w % 4;
294  siz43.height = (3 * (w-r)) / 4;
295  siz43.width = (4 * siz43.height) / 3;
296  return siz43;
297  }
LogBook & rnr::bookmark ( LogBook log)

LogBook bookmark stream manipulator.

Bookmark the pending entry. The bookmark string is auto-generated. The bookmark follows the the pending entry as it is logged and aged.

LogBook log;
log << bookmark;
log << "black birds are cawing" << eoe;
log << bookmark << " remember this to never forget." << eoe;
Parameters
logLogBook reference.
Returns
Returns reference to LogBook.

Definition at line 932 of file LogBook.cxx.

References rnr::LogBook::makeBookMarkLabel(), and rnr::LogBook::setPendingBookMark().

Referenced by rnr::cmd::CommandLine::compile(), mainInit(), rnr::cmd::CommandLine::readCommand(), rnr::LogBook::rsortMarks(), and rnr::LogBook::sortMarks().

933 {
934  // generate unique name
936  return log;
937 }
std::string makeBookMarkLabel()
Generate a unique bookmark label.
Definition: LogBook.cxx:612
void setPendingBookMark(const std::string strMark)
Set the pending bookmark.
Definition: LogBook.cxx:430
rnr::lbmanip_bm_ rnr::bookmark ( const std::string  str)

LogBook bookmark parametric manipulator function.

Parameters
strBookmark label.
Returns
Parametric structure.

Definition at line 939 of file LogBook.cxx.

References rnr::lbmanip_bm_::m_strMark.

940 {
941  lbmanip_bm_ o;
942  o.m_strMark = str;
943  return o;
944 }
std::string m_strMark
bookmark label
Definition: LogBook.h:935
LogBook parametric bookmark stream manipulator structure.
Definition: LogBook.h:933
void rnr::dbgpoint ( const std::string &  str,
const cv::Point &  pt 
)
inline

Debug print point.

Parameters
sPreface string.
ptPoint.

Definition at line 352 of file WinOpenCv.h.

353  {
354  fprintf(stderr, "%s=(%d,%d)\n", str.c_str(), pt.x, pt.y);
355  }
void rnr::dbgrect ( const std::string &  str,
const cv::Rect &  r 
)
inline

Debug print rectangle.

Parameters
sPreface string.
rRectangle.

Definition at line 340 of file WinOpenCv.h.

341  {
342  fprintf(stderr, "%s=(%d,%d,%d,%d)\n",
343  str.c_str(), r.x, r.y, r.width, r.height);
344  }
void rnr::dbgsize ( const std::string &  str,
const cv::Size &  siz 
)
inline

Debug print size.

Parameters
sPreface string.
sizSize.

Definition at line 363 of file WinOpenCv.h.

364  {
365  fprintf(stderr, "%s=(%d,%d)\n", str.c_str(), siz.width, siz.height);
366  }
int rnr::distL1 ( const cv::Point &  p1,
const cv::Point &  p2 
)
inline

Calculate the L1 (taxi cab) distance between two 2D points.

Parameters
pt12D integer point 1.
pt22D integer point 2.
Returns
||pt2-pt1||1

Definition at line 137 of file WinOpenCv.h.

138  {
139  return (int)(fabs((double)(p1.x-p2.x)) + fabs((double)(p1.y-p2.y)));
140  }
int rnr::distL1 ( const cv::Point2f &  p1,
const cv::Point2f &  p2 
)
inline

Calculate the L1 (taxi cab) distance between two 2D points.

Parameters
pt12D floating-point number point 1.
pt22D floating-point number point 2.
Returns
||pt2-pt1||1

Definition at line 150 of file WinOpenCv.h.

151  {
152  return fabs(p1.x-p2.x) + fabs(p1.y-p2.y);
153  }
int rnr::distL1 ( const cv::Point3f &  p1,
const cv::Point3f &  p2 
)
inline

Calculate the L1 (taxi cab) distance between two 3D points.

Parameters
pt13D floating-point number point 1.
pt23D floating-point number point 2.
Returns
||pt2-pt1||1

Definition at line 163 of file WinOpenCv.h.

164  {
165  return fabs(p1.x-p2.x) + fabs(p1.y-p2.y) + fabs(p1.z-p2.z);
166  }
int rnr::distL2 ( const cv::Point &  p1,
const cv::Point &  p2 
)
inline

Calculate the L2 (euclidean) distance between two 2D points.

Parameters
pt12D integer point 1.
pt22D integer point 2.
Returns
Distance.

Definition at line 176 of file WinOpenCv.h.

177  {
178  return (int)sqrt( (double)((p1.x-p2.x)*(p1.x-p2.x)) +
179  (double)((p1.y-p2.y)*(p1.y-p2.y)) );
180  }
double rnr::distL2 ( const cv::Point2f &  p1,
const cv::Point2f &  p2 
)
inline

Calculate the L2 (euclidean) distance between two 2D points.

Parameters
pt12D floating-point number point 1.
pt22D floating-point number point 2.
Returns
Distance.

Definition at line 190 of file WinOpenCv.h.

191  {
192  return sqrt( (p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y) );
193  }
double rnr::distL2 ( const cv::Point3f &  p1,
const cv::Point3f &  p2 
)
inline

Calculate the L2 (euclidean) distance between two 3D points.

Parameters
pt13D floating-point number point 1.
pt23D floating-point number point 2.
Returns
Distance.

Definition at line 203 of file WinOpenCv.h.

204  {
205  return sqrt( (p1.x-p2.x)*(p1.x-p2.x) +
206  (p1.y-p2.y)*(p1.y-p2.y) +
207  (p1.z-p2.z)*(p1.z-p2.z) );
208  }
int rnr::distLinf ( const cv::Point &  p1,
const cv::Point &  p2 
)
inline

Calculate the Linf distance between two 2D points.

Parameters
pt12D integer point 1.
pt22D integer point 2.
Returns
Distance.

Definition at line 218 of file WinOpenCv.h.

219  {
220  return (int)fmax(fabs((double)(p1.x-p2.x)), fabs((double)(p1.y-p2.y)));
221  }
int rnr::distLinf ( const cv::Point2f &  p1,
const cv::Point2f &  p2 
)
inline

Calculate the Linf distance between two 2D points.

Parameters
pt12D floating-point number point 1.
pt22D floating-point number point 2.
Returns
Distance.

Definition at line 231 of file WinOpenCv.h.

232  {
233  return fmax(fabs(p1.x-p2.x), fabs(p1.y-p2.y));
234  }
int rnr::distLinf ( const cv::Point3f &  p1,
const cv::Point3f &  p2 
)
inline

Calculate the Linf distance between two 3D points.

Parameters
pt13D floating-point number point 1.
pt23D floating-point number point 2.
Returns
Distance.

Definition at line 244 of file WinOpenCv.h.

245  {
246  return fmax(fmax(fabs(p1.x-p2.x), fabs(p1.y-p2.y)), fabs(p1.z-p2.z));
247  }
LogBook & rnr::eoe ( LogBook log)

LogBook end-of-entry stream manipulator.

The pending entry is copied into the log and then flushed of data, ready to begin recording new entry.

LogBook log;
log << eoe;
log << 5 << " was my happiest age." << eoe;
Parameters
logLogBook reference.
Returns
Returns reference to LogBook.

Definition at line 926 of file LogBook.cxx.

References rnr::LogBook::logPending().

Referenced by rnr::cmd::CommandLine::addCommand(), rnr::cmd::CommandLine::checkReadResult(), rnr::cmd::CommandLine::compile(), rnr::cmd::CommandLine::finalize(), rnr::cmd::CommandLine::lexQuotedString(), rnr::cmd::CommandLine::lexSyntaxParenExpr(), rnr::cmd::CommandLine::lexSyntaxWord(), rnr::cmd::CommandLine::lexWord(), rnr::cmd::CommandLine::logLexToken(), mainInit(), rnr::cmd::CommandLine::match(), rnr::cmd::CommandLine::matchCommand(), rnr::cmd::CommandLine::matchCommandForm(), rnr::cmd::CommandLine::parseArg(), rnr::cmd::CommandLine::parseArgv0(), rnr::cmd::CommandLine::parseIdentifier(), rnr::cmd::CommandLine::parseLiteralValue(), rnr::cmd::CommandLine::parseSyntax(), rnr::cmd::CommandLine::parseVarMod(), rnr::cmd::CommandLine::parseVarRangeExpr(), rnr::cmd::CommandLine::parseVarRegExpr(), rnr::cmd::CommandLine::parseVarType(), rnr::cmd::CommandLine::parseXorList(), rnr::cmd::CommandLine::readCommand(), rnr::cmd::CommandLine::removeAllCommands(), rnr::cmd::CommandLine::removeCommand(), rnr::cmd::CommandLine::tokEq(), and rnr::cmd::CommandLine::tokIdentifier().

927 {
928  log.logPending();
929  return log;
930 }
size_t logPending()
Log any pending entry into the log book.
Definition: LogBook.cxx:392
bool rnr::isinrect ( int  x,
int  y,
cv::Rect &  r 
)
inline

Check if point x,y is with rectangle r.

Parameters
xX integer coordinate.
yY integer coordinate.
rInteger ectangle.
Returns
true or flase

Definition at line 258 of file WinOpenCv.h.

259  {
260  return (x >= r.x) && (x < r.x+r.width) && (y >= r.y) && (y < r.y+r.height)?
261  true: false;
262  }
bool rnr::isnopoint ( const cv::Point &  pt)
inline

Check if point is not set ("no point").

Parameters
pt2D integer point.
Returns
true or false.

Definition at line 100 of file WinOpenCv.h.

101  {
102  return (pt.x < 0) || (pt.y < 0)? true: false;
103  }
bool rnr::isnopoint ( const cv::Point2f &  pt)
inline

Check if point is not set ("no point").

Parameters
pt2D floating-point number point.
Returns
true or false.

Definition at line 112 of file WinOpenCv.h.

113  {
114  return (pt.x < 0.0) || (pt.y < 0.0)? true: false;
115  }
bool rnr::isnopoint ( const cv::Point3f &  pt)
inline

Check if point is not set ("no point").

Parameters
pt3D floating-point number point
Returns
true or false.

Definition at line 124 of file WinOpenCv.h.

125  {
126  return (pt.x < 0.0) || (pt.y < 0.0) || (pt.z < 0.0)? true: false;
127  }
std::ostream& rnr::operator<< ( std::ostream &  os,
const RegEx re 
)

Insert object into output stream.

Output: re"REGEX" string where REGEX is the regular expression pattern.

Parameters
osOutput stream.
reObject to insert.
Returns
Reference to output stream.
std::ostream& rnr::operator<< ( std::ostream &  os,
const LogBook log 
)

Stream insertion operator.

The entire log book is inserted. Formatting is controlled by the current flags settings.

Parameters
osOutput stream.
logLog book.
Returns
Reference to output stream.

Referenced by rnr::RegEx::freeReMem(), and rnr::LogBook::makeBookMarkLabel().

LogBook & rnr::operator<< ( LogBook log,
rnr::lbmanip_bm_  f 
)

LogBook bookmark parametric manipulator stream operators.

Bookmark the pending entry. The bookmark follows the the pending entry as it is logged and aged.

LogBook log;
log << bookmark("GTO") << "Muscle cars of yore." << eoe;
Parameters
logLogBook reference.
fBookmark parametric type.
Returns
Returns reference to LogBook.

Definition at line 946 of file LogBook.cxx.

References rnr::lbmanip_bm_::m_strMark, and rnr::LogBook::setPendingBookMark().

947 {
949  return log;
950 }
std::string m_strMark
bookmark label
Definition: LogBook.h:935
void setPendingBookMark(const std::string strMark)
Set the pending bookmark.
Definition: LogBook.cxx:430
LogBook & rnr::operator<< ( LogBook log,
rnr::lbmanip_fg_  f 
)

LogBook formatting flags parametric manipulator stream operators.

Modify formatting behavior with flags.

LogBook log;
// log data
log << setflags(flags);
std::cout << log;
Parameters
logLogBook reference.
fFlags parametric type.
Returns
Returns reference to LogBook.

Definition at line 959 of file LogBook.cxx.

References rnr::LogBook::setFlags().

960 {
961  log.setFlags(f.m_uFlags);
962  return log;
963 }
unsigned setFlags(const unsigned uFlags)
Set the current formatting flags.
Definition: LogBook.h:630
std::istream& rnr::operator>> ( std::istream &  is,
RegEx re 
)

Extract from input stream to object.

Input: re"REGEX" string where REGEX is the regular expression pattern.

Parameters
isInput stream.
reObject to extract into.
Returns
Reference to input stream.

Referenced by rnr::RegEx::freeReMem().

rnr::lbmanip_fg_ rnr::setflags ( const unsigned  flags)

LogBook formatting flags parametric manipulator function.

Parameters
strBookmark label.
Returns
Parametric structure.

Definition at line 952 of file LogBook.cxx.

953 {
954  lbmanip_fg_ o;
955  o.m_uFlags = flags;
956  return o;
957 }
LogBook parametric formatting flags manipulator structure.
Definition: LogBook.h:969

Variable Documentation

const CamRes rnr::CamRes1280x720 = {1280, 720}

Common ~16:9 aspect ratio camera resolutions.

1280 x 720 resolution

Definition at line 107 of file Camera.h.

const CamRes rnr::CamRes1280x800 = {1280, 800}

Common 16:10 aspect ratio camera resolutions.

1280 x 800 resolution

Definition at line 101 of file Camera.h.

const CamRes rnr::CamResUndef = { -1, -1}

Common 4:3 aspect ratio camera resolutions.

undefined resolution

Definition at line 88 of file Camera.h.

const char* const rnr::VideoDevDft = "/dev/video0"

Default video device.

default video device

Definition at line 113 of file Camera.h.

const char* const rnr::XmlDecl = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"

XML declaration fixed string

Definition at line 73 of file Xml.h.

Referenced by rnr::Xml::makeXmlHead().

const char* const rnr::XmlNsXsi
Initial value:
=
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""

XML schema instance fixed substring

Definition at line 76 of file Xml.h.

Referenced by rnr::Xml::makeXmlHead().

const char* const rnr::XslDecl
Initial value:
=
"<xsl:stylesheet version=\"1.0\" "
"xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"

Definition at line 79 of file Xml.h.