diff --git a/pvDataApp/factory/Convert.cpp b/pvDataApp/factory/Convert.cpp index fbacdb6..627c062 100644 --- a/pvDataApp/factory/Convert.cpp +++ b/pvDataApp/factory/Convert.cpp @@ -126,7 +126,7 @@ size_t Convert::fromStringArray(PVScalarArrayPtr const &pv, data.begin()); PVStringArray::const_svector temp(freeze(data)); - pv->putFrom(temp); + pv->putFrom(temp); return length; } else { @@ -140,7 +140,7 @@ size_t Convert::toStringArray(PVScalarArrayPtr const & pv, StringArray &to, size_t toOffset) { PVStringArray::const_svector data; - pv->getAs(data); + pv->getAs(data); data.slice(offset, length); if(toOffset+data.size() > to.size()) to.resize(toOffset+data.size()); diff --git a/pvDataApp/factory/printer.cpp b/pvDataApp/factory/printer.cpp index ad455fe..f6e3a96 100644 --- a/pvDataApp/factory/printer.cpp +++ b/pvDataApp/factory/printer.cpp @@ -173,14 +173,14 @@ void PrinterPlain::encodeScalar(const PVScalar& pv) indentN(S(), ilvl); S() << pv.getScalar()->getID() << " " << pv.getFieldName() << " " - << pv.getAs() << std::endl; + << pv.getAs() << std::endl; } void PrinterPlain::encodeArray(const PVScalarArray& pv) { indentN(S(), ilvl); shared_vector temp; - pv.getAs(temp); + pv.getAs(temp); S() << pv.getScalarArray()->getID() << " " << pv.getFieldName() << " ["; diff --git a/pvDataApp/pv/convert.h b/pvDataApp/pv/convert.h index 8399ec3..6faead0 100644 --- a/pvDataApp/pv/convert.h +++ b/pvDataApp/pv/convert.h @@ -157,7 +157,7 @@ public: */ void fromString(PVScalarPtr const & pv, String const & from) { - pv->putFrom(from); + pv->putFrom(from); } /** @@ -296,145 +296,145 @@ public: * @param pv a PV * @return converted value */ - inline int8 toByte(PVScalarPtr const & pv) { return pv->getAs();} + inline int8 toByte(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a short. * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline int16 toShort(PVScalarPtr const & pv) { return pv->getAs();} + inline int16 toShort(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a int. * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline int32 toInt(PVScalarPtr const & pv) { return pv->getAs();} + inline int32 toInt(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to an long * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline int64 toLong(PVScalarPtr const & pv) { return pv->getAs();} + inline int64 toLong(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a ubyte. * @param pv a PV * @return converted value */ - inline uint8 toUByte(PVScalarPtr const & pv) { return pv->getAs();} + inline uint8 toUByte(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a ushort. * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline uint16 toUShort(PVScalarPtr const & pv) { return pv->getAs();} + inline uint16 toUShort(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a uint. * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline uint32 toUInt(PVScalarPtr const & pv) { return pv->getAs();} + inline uint32 toUInt(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to an ulong * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline uint64 toULong(PVScalarPtr const & pv) { return pv->getAs();} + inline uint64 toULong(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a float * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline float toFloat(PVScalarPtr const & pv) { return pv->getAs();} + inline float toFloat(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a double * @param pv a PV * @return converted value * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline double toDouble(PVScalarPtr const & pv) { return pv->getAs();} + inline double toDouble(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV to a String * @param pv a PV * @return converted value */ - inline String toString(PVScalarPtr const & pv) { return pv->getAs();} + inline String toString(PVScalarPtr const & pv) { return pv->getAs();} /** * Convert a PV from a byte * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromByte(PVScalarPtr const & pv,int8 from) { pv->putFrom(from); } + inline void fromByte(PVScalarPtr const & pv,int8 from) { pv->putFrom(from); } /** * Convert a PV from a short * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromShort(PVScalarPtr const & pv,int16 from) { pv->putFrom(from); } + inline void fromShort(PVScalarPtr const & pv,int16 from) { pv->putFrom(from); } /** * Convert a PV from an int * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromInt(PVScalarPtr const & pv, int32 from) { pv->putFrom(from); } + inline void fromInt(PVScalarPtr const & pv, int32 from) { pv->putFrom(from); } /** * Convert a PV from a long * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromLong(PVScalarPtr const & pv, int64 from) { pv->putFrom(from); } + inline void fromLong(PVScalarPtr const & pv, int64 from) { pv->putFrom(from); } /** * Convert a PV from a ubyte * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromUByte(PVScalarPtr const & pv,uint8 from) { pv->putFrom(from); } + inline void fromUByte(PVScalarPtr const & pv,uint8 from) { pv->putFrom(from); } /** * Convert a PV from a ushort * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromUShort(PVScalarPtr const & pv,uint16 from) { pv->putFrom(from); } + inline void fromUShort(PVScalarPtr const & pv,uint16 from) { pv->putFrom(from); } /** * Convert a PV from an uint * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromUInt(PVScalarPtr const & pv, uint32 from) { pv->putFrom(from); } + inline void fromUInt(PVScalarPtr const & pv, uint32 from) { pv->putFrom(from); } /** * Convert a PV from a ulong * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromULong(PVScalarPtr const & pv, uint64 from) { pv->putFrom(from); } + inline void fromULong(PVScalarPtr const & pv, uint64 from) { pv->putFrom(from); } /** * Convert a PV from a float * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromFloat(PVScalarPtr const & pv, float from) { pv->putFrom(from); } + inline void fromFloat(PVScalarPtr const & pv, float from) { pv->putFrom(from); } /** * Convert a PV from a double * @param pv a PV * @param from value to put into PV * @throws std::invalid_argument if the Type is not a numeric scalar */ - inline void fromDouble(PVScalarPtr const & pv, double from) { pv->putFrom(from); } + inline void fromDouble(PVScalarPtr const & pv, double from) { pv->putFrom(from); } /** * Convenience method for implementing toString.