00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef RC_GENICAM_API_CONFIG
00037 #define RC_GENICAM_API_CONFIG
00038
00039 #include <GenApi/GenApi.h>
00040 #include <GenApi/ChunkAdapter.h>
00041
00042 #include <memory>
00043 #include <string>
00044 #include <vector>
00045
00046
00047
00048
00049
00050
00051 namespace rcg
00052 {
00053
00065 bool callCommand(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00066 bool exception=false);
00067
00080 bool setBoolean(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00081 bool value, bool exception=false);
00082
00095 bool setInteger(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00096 int64_t value, bool exception=false);
00097
00110 bool setIPV4Address(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00111 const char *value, bool exception);
00112
00125 bool setFloat(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00126 double value, bool exception=false);
00127
00140 bool setEnum(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00141 const char *value, bool exception=false);
00142
00158 bool setString(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00159 const char *value, bool exception=false);
00160
00172 bool getBoolean(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00173 bool exception=false, bool igncache=false);
00174
00191 int64_t getInteger(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00192 int64_t *vmin=0, int64_t *vmax=0, bool exception=false, bool igncache=false);
00193
00210 double getFloat(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00211 double *vmin=0, double *vmax=0, bool exception=false, bool igncache=false);
00212
00223 std::string getEnum(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00224 bool exception=false);
00225
00239 std::string getEnum(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00240 std::vector<std::string> &list, bool exception=false);
00241
00256 std::string getString(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00257 bool exception=false, bool igncache=false);
00258
00269 void checkFeature(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name,
00270 const char *value, bool igncache=false);
00271
00288 std::shared_ptr<GenApi::CChunkAdapter> getChunkAdapter(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap,
00289 const std::string &tltype);
00290
00291
00309 class Buffer;
00310
00311 std::string getComponetOfPart(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap,
00312 const Buffer *buffer, uint32_t part);
00313
00314 }
00315
00316 #endif