Ignore:
Timestamp:
Oct 25, 2009, 12:07:59 PM (12 years ago)
Author:
Matthäus Wander
Message:
  • enabled more generic usage of ArrayIndexer and LengthOf
  • added ArrayIndexer, HMAC, LengthOf to setup
Location:
trunk/CrypPlugins/ArrayIndexer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/ArrayIndexer/ArrayIndexer.cs

    r711 r777  
    1 using System;
     1/*
     2   Copyright 2009 Christian Arnold, Uni Duisburg-Essen
     3
     4   Licensed under the Apache License, Version 2.0 (the "License");
     5   you may not use this file except in compliance with the License.
     6   You may obtain a copy of the License at
     7
     8       http://www.apache.org/licenses/LICENSE-2.0
     9
     10   Unless required by applicable law or agreed to in writing, software
     11   distributed under the License is distributed on an "AS IS" BASIS,
     12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13   See the License for the specific language governing permissions and
     14   limitations under the License.
     15*/
     16using System;
    217using System.Collections.Generic;
    318using System.Linq;
     
    1227{
    1328    [Author("Christian Arnold", "christian.arnold@stud.uni-due.de", "Uni Duisburg-Essen", "")]
    14     [PluginInfo(true, "ArrayIndexer", "Content of the chosen index of the array", "", "ArrayIndexer/arrayindexer.png")]
     29    [PluginInfo(false, "ArrayIndexer", "Content of the chosen index of the array", "", "ArrayIndexer/arrayindexer.png")]
    1530
    1631    public class ArrayIndexer : IThroughput
     
    108123                }
    109124
    110                 if (ObjInput is string[])
    111                 {
    112                     ObjOutput = ((string[])ObjInput)[settings.ArrayIndex];
    113                 }
    114                 else if (ObjInput is byte[])
    115                 {
    116                     ObjOutput = ((byte[])ObjInput)[settings.ArrayIndex];
    117                 }
    118                 else if (ObjInput is int[])
    119                 {
    120                     ObjOutput = ((int[])ObjInput)[settings.ArrayIndex];
    121                 }
    122                 else
    123                 {
    124                     GuiLogMessage("Type of array not supported", NotificationLevel.Error);
    125                     return;
    126                 }
    127                 GuiLogMessage("Array type is " + ObjInput.GetType().ToString() + " with value: " + ObjOutput.ToString(), NotificationLevel.Info);
     125                ObjOutput = ObjInput.GetValue(settings.ArrayIndex);
     126
     127                GuiLogMessage("Array type is " + ObjInput.GetType().ToString() + " with value: " + ObjOutput.ToString(), NotificationLevel.Debug);
    128128            }
    129129        }
  • trunk/CrypPlugins/ArrayIndexer/ArrayIndexer.csproj

    r711 r777  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    6     <ProductVersion>9.0.21022</ProductVersion>
     6    <ProductVersion>9.0.30729</ProductVersion>
    77    <SchemaVersion>2.0</SchemaVersion>
    88    <ProjectGuid>{A066F077-B078-4234-BDD4-3632C0B3C18F}</ProjectGuid>
     
    7676  </Target>
    7777  -->
     78  <PropertyGroup>
     79    <PostBuildEvent>cd "$(ProjectDir)"
     80cd ..\..\CrypWin\$(OutDir)
     81if not exist "./CrypPlugins" mkdir "./CrypPlugins"
     82
     83del /S /Q /A:-S-R-H "$(TargetName)*.*"
     84copy "$(TargetDir)$(TargetName)*.*" "./CrypPlugins"
     85
     86if not exist "./Data" mkdir "./Data"
     87if exist "$(TargetDir)Data" xcopy /Y /S "$(TargetDir)Data" "./Data"
     88</PostBuildEvent>
     89  </PropertyGroup>
    7890</Project>
  • trunk/CrypPlugins/ArrayIndexer/ArrayIndexerSettings.cs

    r711 r777  
    1 using System;
     1/*
     2   Copyright 2009 Christian Arnold, Uni Duisburg-Essen
     3
     4   Licensed under the Apache License, Version 2.0 (the "License");
     5   you may not use this file except in compliance with the License.
     6   You may obtain a copy of the License at
     7
     8       http://www.apache.org/licenses/LICENSE-2.0
     9
     10   Unless required by applicable law or agreed to in writing, software
     11   distributed under the License is distributed on an "AS IS" BASIS,
     12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13   See the License for the specific language governing permissions and
     14   limitations under the License.
     15*/
     16using System;
    217using System.Collections.Generic;
    318using System.Linq;
  • trunk/CrypPlugins/ArrayIndexer/Properties/AssemblyInfo.cs

    r711 r777  
    3333// by using the '*' as shown below:
    3434// [assembly: AssemblyVersion("1.0.*")]
    35 [assembly: AssemblyVersion("1.0.0.0")]
    36 [assembly: AssemblyFileVersion("1.0.0.0")]
     35[assembly: AssemblyVersion("2.0.*")]
     36//[assembly: AssemblyFileVersion("1.0.0.0")]
Note: See TracChangeset for help on using the changeset viewer.