2using System.Collections.Generic;
 
   39                    strBody += Environment.NewLine;
 
   43            using (StreamWriter sw = 
new StreamWriter(strFileName))
 
   58            using (StreamReader sr = 
new StreamReader(strFileName))
 
   60                strBody = sr.ReadToEnd();
 
The RawProtoFile class writes and reads prototxt to and from a file.
 
static RawProto LoadFromFile(string strFileName)
Loads a RawProto from a prototxt file.
 
RawProtoFile()
The RawProtoFile constructor.
 
static void SaveToFile(RawProto p, string strFileName)
Saves the RawProto to a file.
 
The RawProto class is used to parse and output Google prototxt file data.
 
string Name
Returns the name of the node.
 
RawProtoCollection Children
Returns a collection of this nodes child nodes.
 
override string ToString()
Returns the RawProto as its full prototxt string.
 
static RawProto Parse(string str)
Parses a prototxt and places it in a new RawProto.
 
The MyCaffe.basecode contains all generic types used throughout MyCaffe.