#ifndef __JDB_JDETECTORS__ #define __JDB_JDETECTORS__ #include #include #include #include "JDB/JDBString.hh" #include "JDB/JSonSupportkit.hh" /** * \author mdejong */ namespace JDATABASE {} namespace JPP { using namespace JDATABASE; } namespace JDATABASE { struct JDetectors : public TObject { static const char* const getName() { return "detectors"; } //!< Table name std::string OID; int SERIALNUMBER; std::string LOCATIONID; JDBString CITY; ClassDef(JDetectors, 1); }; namespace APIV2 { struct JDetector : public JSonHelper, public TObject { static const char* const getName() { return "Detector"; } //!< Table name JDetector() {} /** * Copy constructor. * * \param detector detector */ JDetector(const JDetectors& detector) : DetOID (detector.OID), DetId (detector.SERIALNUMBER), Location (detector.LOCATIONID), City (detector.CITY) {} /** * Type conversion operator. * * \return detector */ operator JDetectors() const { JDetectors detector; detector.OID = this->DetOID; detector.SERIALNUMBER = this->DetId; detector.LOCATIONID = this->Location; detector.CITY = this->City; return detector; } std::string DetOID; int DetId; std::string Location; std::string City; ClassDef(JDetector, 1); }; } } #endif