Esempio n. 1
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Constructs an Sqm from a ConfigFile </summary>
 /// <remarks>
 ///     Note that the configfile passed to the constructor will be modified
 ///     as a result of the ItemisedClasses substitution that takes place when
 ///     recasting this as an sqm.
 /// </remarks>
 /// <param name="config">    The configFile to use as a basis for this sqm </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 public Sqm(ConfigFile config) {
     //copy all the items across
     ItemisedClass.Substitute(config);
     foreach (ConfigProperty e in config)
         base.Add(e);
 }
Esempio n. 2
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Visit configuration set. </summary>
 /// <remarks>   Neil MacMullen, 18/02/2011. </remarks>
 /// <param name="node"> The node. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 protected override void VisitConfigFile(ConfigFile node) {
     base.VisitConfigFile(node);
 }
Esempio n. 3
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Visit configuration file. </summary>
 /// <param name="node"> The node. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 protected virtual void VisitConfigFile(ConfigFile node) {
     foreach (var ce in node)
         Visit(ce);
 }
Esempio n. 4
0
 protected override void VisitConfigFile(ConfigFile node) {
     throw new NotImplementedException();
     BinariseHeader(mem);
     base.VisitConfigFile(node);
 }
Esempio n. 5
0
        void ReadAll() {
            if (!CheckSignature(_input))
                throw new RapFormatException("Attempt to read a rap file with an invalid signature");
            //skip signature since CheckSignature helpfully rewinds
            _input.Seek(4, SeekOrigin.Current);
            //skip reserved bytes
            _input.Seek(6, SeekOrigin.Current);
            //skip first entryType
            _input.Seek(1, SeekOrigin.Current);
            //skip null classname
            BinaryFile.ReadString(_input);
            //skip enum offset
            var enumOffset = BinaryFile.ReadUInt32(_input);

            //now we are at the actual list of classes so start reading

            var c = ReadClassBody("", _input.Position);
            Root = new ConfigFile(c);

            //finally read the enums if present and add them to the Root
            if (enumOffset != 0) {
                var enums = ReadEnums(enumOffset);
                if (enums != null)
                    Root.Add(enums);
            }
        }
Esempio n. 6
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Writes a ConfigFile in .rap format </summary>
 /// <remarks>
 ///     Not yet implemented - make a forum request if
 ///     you require this functionality
 /// </remarks>
 /// <exception cref="NotImplementedException">
 ///     Thrown when the requested operation is
 ///     unimplemented.
 /// </exception>
 /// <param name="config">   The configuration. </param>
 /// <param name="output">   The output. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 public static void WriteConfig(ConfigFile config, Stream output) {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Visit configuration set. </summary>
 /// <remarks>   Neil MacMullen, 18/02/2011. </remarks>
 /// <param name="node"> The node. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 protected override void VisitConfigFile(ConfigFile node)
 {
     base.VisitConfigFile(node);
 }