Esempio n. 1
0
		internal static IfcSoundProperties Parse(string strDef) { IfcSoundProperties p = new IfcSoundProperties(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p; }
Esempio n. 2
0
		internal static void parseFields(IfcSoundProperties p, List<string> arrFields, ref int ipos)
		{
			IfcPropertySetDefinition.parseFields(p, arrFields, ref ipos);
			p.mIsAttenuating = ParserSTEP.ParseBool(arrFields[ipos++]);
			string str = arrFields[ipos++];
			if (!str.StartsWith("$"))
				p.mSoundScale = (IfcSoundScaleEnum)Enum.Parse(typeof(IfcSoundScaleEnum), str);
			p.mSoundValues = ParserSTEP.SplitListLinks(arrFields[ipos++]);
		}
Esempio n. 3
0
		internal IfcSoundProperties(IfcSoundProperties p) : base(p) { mIsAttenuating = p.mIsAttenuating; mSoundScale = p.mSoundScale; mSoundValues = new List<int>(p.mSoundValues.ToArray()); }