コード例 #1
0
ファイル: Compiler.cs プロジェクト: yuckify/cppsharp
 public CsharpGen(XmlTextReader reader)
 {
     reader_ = reader;
     contexts_ = new List<Context>();
     contextMap_ = new Dictionary<String, Context>();
     _types = new TypeMap();
     _platform = new PlatformInfo();
     _converter = new TypeConverter(this);
     _fileMap = new Dictionary<string, string>();
     _lastEnum = null;
     _enumMap = new Dictionary<string, Enumeration>();
     _files = new Dictionary<string, FileInfo>();
     setupOpMap();
 }
コード例 #2
0
ファイル: Context.cs プロジェクト: yuckify/cppsharp
 public void addEnumeration(Enumeration en)
 {
     _enums.Add(en);
 }
コード例 #3
0
ファイル: DataType.cs プロジェクト: yuckify/cppsharp
 public void Add(Enumeration en)
 {
     EnumerationType ent = new EnumerationType(en); ent.Parent = this; Add(ent);
 }
コード例 #4
0
ファイル: DataType.cs プロジェクト: yuckify/cppsharp
 public EnumerationType(Enumeration en)
 {
     _enum = en;
 }
コード例 #5
0
ファイル: Compiler.cs プロジェクト: yuckify/cppsharp
        void addEnumeration()
        {
            Enumeration tmp = new Enumeration(reader_, this);
            _enumMap.Add(tmp.Id, tmp);
            Types.Add (tmp);

            _lastEnum = tmp;
        }