OpenSRX 0.1.0
C++ library for interfacing with Keyence SR series barcode readers
Loading...
Searching...
No Matches
Scanner.hpp File Reference
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include "OpenSRX/Code.hpp"
#include "OpenSRX/ICommInterface.hpp"
#include "OpenSRX/ImageServer.hpp"
#include "OpenSRX/ParamTraits.hpp"
#include "OpenSRX/Timestamp.hpp"

Go to the source code of this file.

Classes

struct  OpenSRX::ImageSaveConfig
 Configuration for which image types to save via FTP. More...
 
class  OpenSRX::Scanner
 High-level interface to a KEYENCE SR-X series barcode scanner. More...
 
struct  OpenSRX::Scanner::SavedImageDests
 Previous SAVE_DEST values saved by startImageServer, restored on stop. More...
 

Namespaces

namespace  OpenSRX
 

Enumerations

enum class  OpenSRX::CommandStatus { OpenSRX::NO_PROCESSING = 0 , OpenSRX::WAIT_FOR_SETTING = 1 , OpenSRX::UPDATING = 2 }
 Scanner command processing status. More...
 
enum class  OpenSRX::ErrorStatus {
  OpenSRX::NO_ERROR = 0 , OpenSRX::SYSTEM_ERROR = 1 , OpenSRX::UPDATE_ERROR = 2 , OpenSRX::SET_VALUE_ERROR = 3 ,
  OpenSRX::DUPLICATE_IP_ERROR = 4 , OpenSRX::BUFF_OVERFLOW_ERROR = 5 , OpenSRX::PLC_LINK_ERROR = 6 , OpenSRX::PROFINET_ERROR = 7 ,
  OpenSRX::LUA_SCRIPT_ERROR = 8 , OpenSRX::CONNECTION_ERROR = 9
}
 Scanner error status codes. More...
 
enum class  OpenSRX::BusyStatus {
  OpenSRX::IDLE = 0 , OpenSRX::TRG_BUSY = 1 , OpenSRX::UPDATE_PROCESSING = 2 , OpenSRX::SAVING_FILE = 3 ,
  OpenSRX::AUTO_FOCUSING = 4
}
 Scanner busy status. More...
 
enum class  OpenSRX::TuningAdvice { OpenSRX::NONE = 0 , OpenSRX::USE_AN_IMAGE_FILTER = 1 , OpenSRX::CONSIDER_INSTALLATION_LIGHTING_PRINTING_CONDITIONS , OpenSRX::BRIGHTNESS_INSUFFICIENT = 4 }
 Advice returned by tuning on how to improve results. More...
 
enum class  OpenSRX::TuningFailureReason { OpenSRX::CODE_DETECTION_IMPOSSIBLE = 1 , OpenSRX::UNSTABLE_READING = 2 }
 Reason for a tuning failure. More...
 

Functions

std::tuple< std::string, std::string > OpenSRX::parseVersionInfo (const std::string &raw)
 Parse a raw version info string ("MODEL,FIRMWARE") into components.