Manages VMs in namespaces. Currently, two namespace modes are supported: *
  • flat - all allowable VMs are in the global namespace
  • local - inline VMs are added to it's own template namespace
* Thanks to Jose Alberto Fernandez for some ideas incorporated here. *
Пример #1
0
 internal MacroEntry(VelocimacroManager enclosingInstance, VelocimacroManager vmm, System.String vmName, System.String macroBody, System.String[] argArray, System.String sourceTemplate)
 {
     InitBlock(enclosingInstance);
     this.macroname      = vmName;
     this.argarray       = argArray;
     this.macrobody      = macroBody;
     this.sourcetemplate = sourceTemplate;
     this.manager        = vmm;
 }
Пример #2
0
        /// <summary>  CTOR : requires a runtime services from now
        /// on
        /// </summary>
        public VelocimacroFactory(IRuntimeServices rs)
        {
            runtimeServices = rs;

            /*
             *  we always access in a synchronized(), so we
             *  can use an unsynchronized hashmap
             */
            libModMap          = new Hashtable();
            velocimacroManager = new VelocimacroManager(runtimeServices);
        }
Пример #3
0
 internal MacroEntry(VelocimacroManager enclosingInstance, VelocimacroManager velocimacroManager, String vmName,
                     String macroBody,
                     String[] argArray, String sourceTemplate)
 {
     InitBlock(enclosingInstance);
     macroName           = vmName;
     argumentArray       = argArray;
     this.macroBody      = macroBody;
     this.sourceTemplate = sourceTemplate;
     manager             = velocimacroManager;
 }
Пример #4
0
		/// <summary>  CTOR : requires a runtime services from now
		/// on
		/// </summary>
		public VelocimacroFactory(IRuntimeServices rs)
		{
			rsvc = rs;

			/*
		*  we always access in a synchronized(), so we 
		*  can use an unsynchronized hashmap
		*/
			libModMap = new Hashtable();
			vmManager = new VelocimacroManager(rsvc);
		}
        /// <summary>  C'tor for the VelociMacro factory.
        ///
        /// </summary>
        /// <param name="rsvc">Reference to a runtime services object.
        /// </param>
        public VelocimacroFactory(IRuntimeServices rsvc)
        {
            this.rsvc = rsvc;
            this.log  = new LogDisplayWrapper(rsvc.Log, "Velocimacro : ", rsvc.GetBoolean(RuntimeConstants.VM_MESSAGES_ON, true));

            /*
             *  we always access in a synchronized(), so we
             *  can use an unsynchronized hashmap
             */
            libModMap = new Dictionary <string, Twonk>();
            vmManager = new VelocimacroManager(rsvc);
        }
Пример #6
0
 private void  InitBlock(VelocimacroManager enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
	    internal MacroEntry(VelocimacroManager enclosingInstance, VelocimacroManager vmm, System.String vmName, System.String macroBody, System.String[] argArray, System.String sourceTemplate) {
		InitBlock(enclosingInstance);
		this.macroname = vmName;
		this.argarray = argArray;
		this.macrobody = macroBody;
		this.sourcetemplate = sourceTemplate;
		this.manager = vmm;
	    }
	    private void  InitBlock(VelocimacroManager enclosingInstance) {
		this.enclosingInstance = enclosingInstance;
	    }
Пример #9
0
 public VelocimacroFactory(IRuntimeServices rs)
 {
     this.rsvc      = rs;
     this.libModMap = new Hashtable();
     this.vmManager = new VelocimacroManager(this.rsvc);
 }
            internal MacroEntry(VelocimacroManager enclosingInstance, VelocimacroManager velocimacroManager, String vmName,
			                    String macroBody,
			                    String[] argArray, String sourceTemplate)
            {
                InitBlock(enclosingInstance);
                macroName = vmName;
                argumentArray = argArray;
                this.macroBody = macroBody;
                this.sourceTemplate = sourceTemplate;
                manager = velocimacroManager;
            }