32 #ifndef GENAPI_GCAUTIVECTOR_H 33 #define GENAPI_GCAUTIVECTOR_H 45 template<
class T,
class Base>
58 Base::_pv->reserve(uiSize);
59 for (
size_t i = 0; i < uiSize; ++i)
61 Base::_pv->push_back(T());
67 Base::_pv->reserve(count);
68 for (
size_t index = 0; index < count; index++)
69 Base::_pv->push_back(values[index]);
70 std::sort(Base::_pv->begin(), Base::_pv->end());
76 void ToStrings(GENICAM_NAMESPACE::gcstring_vector &srtList)
const 79 typename std::vector<T>::const_iterator it;
80 for (it = Base::_pv->begin(); it != Base::_pv->end(); it++)
83 srtList.push_back(valueStr);
101 for (GENICAM_NAMESPACE::gcstring_vector::const_iterator it = obj.begin();
102 it != obj.end(); it++)
106 Base::_pv->push_back(value);
108 std::sort(Base::_pv->begin(), Base::_pv->end());
115 typename std::vector<T>::const_iterator it;
116 for (it = Base::_pv->begin(); it != Base::_pv->end(); it++)
118 if (*it >= min && *it <= max)
119 resizeVect._pv->push_back(*it);
135 #endif // GENICAM_GCAUTIVECTOR_H Definition of value2string and string2value functions.
const _autovector_impl duplicate(T min, T max)
_autovector_impl< double, double_autovector_t > double_autovector_impl
_autovector_impl(const _autovector_impl &obj)
virtual void operator=(bool Value)
Set node value.
This file contains the public definition of the autovector classes.
_autovector_impl(const size_t uiSize)
void ToStrings(GENICAM_NAMESPACE::gcstring_vector &srtList) const
_autovector_impl & operator=(const Base &obj)
virtual ~_autovector_impl()
_autovector_impl< int64_t, int64_autovector_t > int64_autovector_impl
_autovector_impl(T *values, const size_t count)
This file must be included FIRST.
A string class which is a clone of std::string.
void Value2String(T Value, GENICAM_NAMESPACE::gcstring &ValueStr)
Converts an T property to a string.
Part of the generic device API.
bool String2Value(const GENICAM_NAMESPACE::gcstring &ValueStr, T *Value)
Converts a string to an T property.