Follow this link to skip to the main content

claraty::Camera_Image_Properties::Property Struct Reference

#include <camera_image.h>

List of all members.

Public Types

enum  Mode { INVALID, AUTO, MANUAL }

Public Member Functions

 Property (float value=0.0, float min_val=0.0, float max_val=100.0, Mode mode=INVALID)
bool io (FDM_Map map)

Public Attributes

float value
float min_value
float max_value
enum claraty::Camera_Image_Properties::Property::Mode mode


Detailed Description

Definition at line 43 of file camera_image.h.


Member Enumeration Documentation

Enumerator:
INVALID 
AUTO 
MANUAL 

Definition at line 48 of file camera_image.h.

00048 {INVALID, AUTO, MANUAL} mode;


Constructor & Destructor Documentation

claraty::Camera_Image_Properties::Property::Property ( float  value = 0.0,
float  min_val = 0.0,
float  max_val = 100.0,
Mode  mode = INVALID 
)

Definition at line 45 of file camera_image.cc.

00045                                                           :
00046   value(val),
00047   min_value(min_val),
00048   max_value(max_val),
00049   mode(m)
00050 {
00051 }
//-----------------------------------------------------------------------------


Member Function Documentation

bool claraty::Camera_Image_Properties::Property::io ( FDM_Map  map  ) 

Definition at line 55 of file camera_image.cc.

References claraty::FDM_Map::field(), max_value, min_value, and value.

00056 {
00057   bool ok = true;
00058   ok &= map.field("value",     value);
00059   ok &= map.field("min_value", min_value);
00060   ok &= map.field("max_value", max_value);
00061 //  switch (mode) {
00062 //  case INVALID:
00063   //   ok &= map.field("mode", mode);
00064   //   break;
00065   // default:
00066   //  ok &= map.field("mode", "INVALID");
00067   //  break;
00068   // }
00069   return ok;
00070 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 45 of file camera_image.h.

Referenced by io().

Definition at line 46 of file camera_image.h.

Referenced by io().

Definition at line 47 of file camera_image.h.

Referenced by io().


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