Beispiel #1
0
 public static Standard_OStream ExtChar(Standard_OStream theOs, char theValue)
 {
     theOs.Write(theValue.ToString(CultureInfo.InvariantCulture));
     return(theOs);
 }
Beispiel #2
0
 public static Standard_OStream PutInteger(Standard_OStream theOs, int theValue)
 {
     theOs.Write(theValue.ToString(CultureInfo.InvariantCulture));
     return(theOs);
 }
Beispiel #3
0
 public static Standard_OStream PutReal(Standard_OStream theOs, double theValue)
 {
     theOs.Write(theValue.ToString(CultureInfo.InvariantCulture));
     return(theOs);
 }
Beispiel #4
0
 //TODO: is the serialization will be made in binary or stream?
 //holding this until more clarification
 public static Standard_OStream PutBool(Standard_OStream theOs, bool theValue)
 {
     theOs.Write(theValue? "1" : "0");
     return(theOs);
 }