48 template<
typename V>
QVdt (
const std::vector<V, std::allocator<V> >& value):
name_s(
"") {
52 std::back_insert_iterator<std::vector<QVdt> > inserter(
value_v);
53 std::copy (value.begin (), value.end (), inserter);
74 template<
typename V>
const QVdt&
operator= (
const std::vector<V, std::allocator<V> >& value) {
78 std::back_insert_iterator<std::vector<QVdt> > inserter(
value_v);
79 std::copy (value.begin (), value.end (), inserter);
88 const QVdt&
operator = (
unsigned long value) {
return (*
this) = (
long int)(value); }
89 const QVdt&
operator = (
unsigned short value) {
return (*
this) = (
long int)(value); }
90 const QVdt&
operator = (
unsigned char value) {
return (*
this) = (
long int)(value); }
106 std::vector<std::string>
GetVectorString()
const {
return GetStdVector<std::string>(); }
109 std::set<int>
GetSetInt()
const {
return GetStdSet<int>(); }
110 std::set<std::string>
GetSetString()
const {
return GetStdSet<std::string>(); }
132 for(
size_t i = 0; i < v.size(); i++) {
133 out.push_back(v[i].Get<T>());
142 for(
size_t i=0; i < v.size(); i++){
143 out.insert(v[i].Get<T>());
148 template<
class T> T
Get()
const {
149 DianaThrow(
"QVdt::Get<T> not implemented for this type");
155 template <>
int QVdt::Get<int>()
const;
156 template <>
double QVdt::Get<double>()
const;
157 template <> std::string QVdt::Get<std::string>()
const;
158 template <>
bool QVdt::Get<bool>()
const;
std::ostream & operator<<(std::ostream &, const QVdt &)
void CheckType(QVdt_type new_type) const
std::set< T > GetStdSet() const
std::vector< int > GetVectorInt() const
void AssignValue(const std::string &str)
std::set< std::string > GetSetString() const
std::vector< T > GetStdVector() const
QVdt(unsigned char value)
const QVdt & operator=(const std::string &value)
std::string ToString() const
std::vector< QVdt > QVdt_vector
std::vector< bool > GetVectorBool() const
std::set< int > GetSetInt() const
const std::string & GetString() const
QVdt(const std::vector< V, std::allocator< V > > &value)
std::vector< std::string > GetVectorString() const
QVdt(unsigned long value)
std::string GetName() const
const QVdt_vector & GetVector() const
QVdt_type GetType() const
QVdt(unsigned short value)
void SetName(const std::string &name)
QVdt_type SearchType(const std::string &str)
std::vector< double > GetVectorDouble() const