Classes | |
class | AutoLock |
class | CGlobalLock |
Named global lock which can be used over process boundaries. More... | |
class | CGlobalLockUnlocker |
unlocks the global lock object on destruction More... | |
class | CLock |
A lock class. More... | |
class | CLockEx |
class | CLog |
Helper class encapsulating log4cpp. More... | |
class | ExceptionReporter |
printf like creation of exceptions More... | |
class | gcarray |
class | gcstring |
A string class which is a clone of std::string. More... | |
class | GenericException |
GenICam's exception class. More... | |
class | LockableObject |
Instance-Lock for an object. More... | |
struct | Version_t |
version More... | |
Typedefs | |
typedef int32_t | GC_ERROR |
Enumerations | |
enum | GCErrorID { GC_ERR_SUCCESS = 0, GC_ERR_INVALID_BUFFER_SIZE = -1, GC_ERR_INVALID_HANDLE = -2, GC_ERR_INVALID_ID = -3, GC_ERR_ACCESS_DENIED = -4, GC_ERR_NO_DATA = -5, GC_ERR_ERROR = -6, GC_ERR_INVALID_PARAMETER = -7, GC_ERR_TIMEOUT = -8, GC_ERR_INVALID_FILENAME = -9, GC_ERR_INVALID_ADDRESS = -10, GC_ERR_FILE_IO = -11 } |
enum | GCModuleID { GC_MOD_SYSTEM = 0x0, GC_MOD_TLICLIENT = 0x20000000, GC_MOD_TLISYSTEM = 0x10000000, GC_MOD_FACTORY = 0x08000000, GC_MOD_GENAPI = 0x04000000 } |
Functions | |
DECLARE_EXCEPTION (BadAllocException) | |
DECLARE_EXCEPTION (InvalidArgumentException) | |
Exception fired if an argument is invalid. | |
DECLARE_EXCEPTION (OutOfRangeException) | |
Exception fired if an argument is out of range. | |
DECLARE_EXCEPTION (PropertyException) | |
Exception fired if a property access fails. | |
DECLARE_EXCEPTION (RuntimeException) | |
Runtime exception. | |
DECLARE_EXCEPTION (LogicalErrorException) | |
Exception to be thrown to indicate logical errors in program flow. | |
DECLARE_EXCEPTION (AccessException) | |
Exception to be thrown to indicate an access error. | |
DECLARE_EXCEPTION (TimeoutException) | |
Exception to be thrown to indicate an timeout error. | |
DECLARE_EXCEPTION (DynamicCastException) | |
Exception to be thrown to indicate the result of a dynamic cast was zero. | |
GCBASE_API bool | DoesEnvironmentVariableExist (const gcstring &VariableName) |
Returns true if an environment variable exists. | |
GCBASE_API void | GetFiles (const gcstring &FileTemplate, gcstring_vector &FileNames, const bool DirectoriesOnly=false) |
Gets a list of files or directories matching a given FileTemplate. | |
GCBASE_API gcstring | GetGenICamCacheFolder (void) |
Retrieve the path of the GenICam cache folder. | |
GCBASE_API gcstring | GetGenICamCLProtocolFolder (void) |
Retrieve the path of the CLProtocol folder. | |
GCBASE_API gcstring | GetGenICamLogConfig (void) |
Retrieve the path of the GenICam logging properties file. | |
std::istream & | getline (std::istream &is, GENICAM_NAMESPACE::gcstring &str) |
std::istream & | getline (std::istream &is, GENICAM_NAMESPACE::gcstring &str, char delim) |
GCBASE_API gcstring | GetModulePathFromFunction (void *pFunction) |
> true = only subdirectories (ex . and ..) are retrieved; false = only files are retrieved | |
GCBASE_API gcstring | GetValueOfEnvironmentVariable (const gcstring &VariableName) |
GCBASE_API bool | GetValueOfEnvironmentVariable (const gcstring &VariableName, gcstring &VariableContent) |
template<typename T > | |
T | INTEGRAL_CAST (int64_t ll) |
template<typename Td , typename Ts > | |
Td | INTEGRAL_CAST2 (Ts s) |
GCBASE_API void | ReplaceEnvironmentVariables (gcstring &Buffer, bool ReplaceBlankBy20=false) |
GCBASE_API void | SetGenICamCacheFolder (const gcstring &path) |
Stores the path of the GenICam cache folder. | |
GCBASE_API void | SetGenICamCLProtocolFolder (const gcstring &path) |
Stores the path of the CLProtocol folder. | |
GCBASE_API void | SetGenICamLogConfig (const gcstring &path) |
Stores the path of the GenICam logging properties file. | |
GCBASE_API void | ThrowBadAlloc (const char *source, int line) |
GCBASE_API void | Tokenize (const gcstring &str, gcstring_vector &tokens, const gcstring &delimiters=" ") |
splits str input string into a list of tokens using the delimiter | |
GCBASE_API GENICAM_NAMESPACE::gcstring | UrlDecode (const GENICAM_NAMESPACE::gcstring &Input) |
GCBASE_API gcstring | UrlEncode (const GENICAM_NAMESPACE::gcstring &Input) |
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | BadAllocException | ) |
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | InvalidArgumentException | ) |
Exception fired if an argument is invalid.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | OutOfRangeException | ) |
Exception fired if an argument is out of range.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | PropertyException | ) |
Exception fired if a property access fails.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | RuntimeException | ) |
Runtime exception.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | LogicalErrorException | ) |
Exception to be thrown to indicate logical errors in program flow.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | AccessException | ) |
Exception to be thrown to indicate an access error.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | TimeoutException | ) |
Exception to be thrown to indicate an timeout error.
GENICAM_NAMESPACE::DECLARE_EXCEPTION | ( | DynamicCastException | ) |
Exception to be thrown to indicate the result of a dynamic cast was zero.
GCBASE_API bool GENICAM_NAMESPACE::DoesEnvironmentVariableExist | ( | const gcstring & | VariableName | ) |
Returns true if an environment variable exists.
GCBASE_API void GENICAM_NAMESPACE::GetFiles | ( | const gcstring & | FileTemplate, |
gcstring_vector & | FileNames, | ||
const bool | DirectoriesOnly = false |
||
) |
Gets a list of files or directories matching a given FileTemplate.
FileNames | > The file template. Can contain environment variables. |
DirectoriesOnly | > A list of files matching the file template |
GCBASE_API gcstring GENICAM_NAMESPACE::GetGenICamCacheFolder | ( | void | ) |
Retrieve the path of the GenICam cache folder.
The path to the cache folder can be stored by calling SetGenICamCacheFolder(). If GetGenICamCacheFolder() is called before SetGenICamCacheFolder(), it will return the value of environment variable GENICAM_CACHE_Vx_y. If this environment variable does not exist, an exception will be thrown.
GCBASE_API gcstring GENICAM_NAMESPACE::GetGenICamCLProtocolFolder | ( | void | ) |
Retrieve the path of the CLProtocol folder.
The path to the CLProtocol folder can be stored by calling SetGenICamCLProtocolFolder(). If GetGenICamCLProtocolFolder() is called before SetGenICamCLProtocolFolder(), it will return the value of environment variable GENICAM_CLPROTOCOL. If this environment variable does not exist, an exception will be thrown.
GCBASE_API gcstring GENICAM_NAMESPACE::GetGenICamLogConfig | ( | void | ) |
Retrieve the path of the GenICam logging properties file.
The path to the logging properties file can be stored by calling SetGenICamLogConfig(). If GetGenICamLogConfig() is called before SetGenICamLogConfig(), it will return the value of environment variable GENICAM_LOG_CONFIG_Vx_y. If this environment variable does not exist, an exception will be thrown.
GCBASE_API gcstring GENICAM_NAMESPACE::GetModulePathFromFunction | ( | void * | pFunction | ) |
> true = only subdirectories (ex . and ..) are retrieved; false = only files are retrieved
Gets the full path to the module (DLL/SO) containing the given pFunction; empty string if not found.
GCBASE_API gcstring GENICAM_NAMESPACE::GetValueOfEnvironmentVariable | ( | const gcstring & | VariableName | ) |
Retrieve the value of an environment variable
runtime_exception | if not found |
GCBASE_API bool GENICAM_NAMESPACE::GetValueOfEnvironmentVariable | ( | const gcstring & | VariableName, |
gcstring & | VariableContent | ||
) |
Retrieve the value of an environment variable
T GENICAM_NAMESPACE::INTEGRAL_CAST | ( | int64_t | ll | ) | [inline] |
This verifies at runtime if there was no loss of data if an int64_t was downcast to type T (e.g. int32_t)
Definition at line 113 of file GCUtilities.h.
Td GENICAM_NAMESPACE::INTEGRAL_CAST2 | ( | Ts | s | ) | [inline] |
This verifies at runtime if there was no loss of data if an type Ts (e.g. int64t) was downcast to type Td (e.g. int32_t)
Definition at line 101 of file GCUtilities.h.
GCBASE_API void GENICAM_NAMESPACE::SetGenICamCacheFolder | ( | const gcstring & | path | ) |
Stores the path of the GenICam cache folder.
GCBASE_API void GENICAM_NAMESPACE::SetGenICamCLProtocolFolder | ( | const gcstring & | path | ) |
Stores the path of the CLProtocol folder.
GCBASE_API void GENICAM_NAMESPACE::SetGenICamLogConfig | ( | const gcstring & | path | ) |
Stores the path of the GenICam logging properties file.
GCBASE_API void GENICAM_NAMESPACE::ThrowBadAlloc | ( | const char * | source, |
int | line | ||
) |
GCBASE_API void GENICAM_NAMESPACE::Tokenize | ( | const gcstring & | str, |
gcstring_vector & | tokens, | ||
const gcstring & | delimiters = " " |
||
) |
splits str input string into a list of tokens using the delimiter
str | string to be split |
tokens | result of the splitting operation |
delimiters | delimiters for the splitting |