资源简介
基于ClearCanvas开发的pacs系统代码,c#开发,包含了dicom的传输、存储、浏览等
代码片段和文件信息
#region License
// Copyright (c) 2013 ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation either version 3 of the
// License or (at your option) any later version.
//
// The ClearCanvas RIS/PACS open source project is distributed in the hope that it
// will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along with
// the ClearCanvas RIS/PACS open source project. If not see
// .
#endregion
using System;
namespace ClearCanvas.Common
{
///
/// Implements an extension filter that performs matching on attributes.
///
///
/// For each attribute that is supplied to the constructor of this filter the filter
/// will check if the extension is marked with at least one matching attribute. A matching attribute is an
/// attribute for which the method returns true. This allows
/// for quite sophisticated matching capabilities as the attribute itself decides what constitutes
/// a match.
///
public class AttributeExtensionFilter : ExtensionFilter
{
private Attribute[] _attributes;
///
/// Creates a filter to match on multiple attributes.
///
///
/// The extension must test true on each attribute.
///
/// The attributes to be used as test criteria.
public AttributeExtensionFilter(Attribute[] attributes)
{
_attributes = attributes;
}
///
/// Creates a filter to match on a single attribute.
///
/// The attribute to be used as test criteria.
public AttributeExtensionFilter(Attribute attribute)
:this(new Attribute[] { attribute })
{
}
///
/// Checks whether the specified extension is marked with attributes that
/// match every test attribute supplied as criteria to this filter.
///
/// The information about the extension to test.
/// true if the test succeeds.
public override bool Test(ExtensionInfo extension)
{
foreach (Attribute a in _attributes)
{
object[] candidates = ex
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 824 2014-09-19 00:17 pacs-ClearCanvas-master\.gitattributes
....... 1171 2014-09-19 00:17 pacs-ClearCanvas-master\.gitignore
....... 1315 2014-09-19 00:17 pacs-ClearCanvas-master\.hgignore
....... 179 2014-09-19 00:17 pacs-ClearCanvas-master\.hgtags
....... 1704 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\ActionExecuteResult.cs
....... 2850 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\ActionList.cs
....... 1481 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\IActionItem.cs
....... 1673 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\IActionList.cs
....... 2130 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\Ixm
....... 7405 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\xm
....... 1867 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Actions\xm
....... 6004 2014-09-19 00:17 pacs-ClearCanvas-master\Common\app.config
....... 3556 2014-09-19 00:17 pacs-ClearCanvas-master\Common\AttributeExtensionFilter.cs
....... 3531 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Audit\AuditEntryInfo.cs
....... 4747 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Audit\AuditLog.cs
....... 1404 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Audit\IAuditSink.cs
....... 3812 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Authorization\AuthorityGroupDefinition.cs
....... 4117 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Authorization\AuthorityGroupSetup.cs
....... 1653 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Authorization\AuthorityTokenAttribute.cs
....... 2190 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Authorization\AuthorityTokenDefinition.cs
....... 1383 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Authorization\IDefineAuthorityGroups.cs
....... 4536 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\Cache.cs
....... 3443 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CacheClientLoggingDecorator.cs
....... 1149 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CacheException.cs
....... 1247 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CacheGetOptions.cs
....... 1295 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CacheOptionsba
....... 1185 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CacheProviderInitializationArgs.cs
....... 1798 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CachePutOptions.cs
....... 1348 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\CacheRemoveOptions.cs
....... 3650 2014-09-19 00:17 pacs-ClearCanvas-master\Common\Caching\DefaultCacheClient.cs
............此处省略13197个文件信息
评论
共有 条评论