1// ParseProperties.h 2 3#ifndef __PARSEPROPERTIES_H 4#define __PARSEPROPERTIES_H 5 6#include "Common/MyString.h" 7#include "Common/Types.h" 8 9HRESULT ParsePropValue(const UString &name, const PROPVARIANT &prop, UInt32 &resValue); 10HRESULT ParsePropDictionaryValue(const UString &srcStringSpec, UInt32 &dicSize); 11HRESULT ParsePropDictionaryValue(const UString &name, const PROPVARIANT &prop, UInt32 &resValue); 12 13bool StringToBool(const UString &s, bool &res); 14HRESULT SetBoolProperty(bool &dest, const PROPVARIANT &value); 15int ParseStringToUInt32(const UString &srcString, UInt32 &number); 16HRESULT ParseMtProp(const UString &name, const PROPVARIANT &prop, UInt32 defaultNumThreads, UInt32 &numThreads); 17 18#endif 19