LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Functions
PropertySet.cc File Reference

Implementation for PropertySet class. More...

#include "lsst/daf/base/PropertySet.h"
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include "lsst/pex/exceptions/Runtime.h"
#include "lsst/daf/base/DateTime.h"

Go to the source code of this file.

Functions

template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > (std::string const &name, Ptr const &value)
 
template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > (std::string const &name, vector< Ptr > const &value)
 

Detailed Description

Implementation for PropertySet class.

Version
$Revision$
Date
$Date$

Contact: Kian-Tat Lim (ktl@s.nosp@m.lac..nosp@m.stanf.nosp@m.ord..nosp@m.edu)

Definition in file PropertySet.cc.

Function Documentation

template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > ( std::string const &  name,
Ptr const &  value 
)

Definition at line 634 of file PropertySet.cc.

635  {
636  AnyMap::iterator i = _find(name);
637  if (i == _map.end()) {
638  set(name, value);
639  }
640  else {
641  if (i->second->back().type() != typeid(Ptr)) {
642  throw LSST_EXCEPT(pexExcept::TypeError,
643  name + " has mismatched type");
644  }
645  _cycleCheckPtr(value, name);
646  i->second->push_back(value);
647  }
648 }
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<>
void dafBase::PropertySet::add< dafBase::PropertySet::Ptr > ( std::string const &  name,
vector< Ptr > const &  value 
)

Definition at line 676 of file PropertySet.cc.

677  {
678  AnyMap::iterator i = _find(name);
679  if (i == _map.end()) {
680  set(name, value);
681  }
682  else {
683  if (i->second->back().type() != typeid(Ptr)) {
684  throw LSST_EXCEPT(pexExcept::TypeError,
685  name + " has mismatched type");
686  }
687  _cycleCheckPtrVec(value, name);
688  i->second->insert(i->second->end(), value.begin(), value.end());
689  }
690 }
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46