/*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=============================================================================*/
#include "ctkConfigurationEvent.h"
#include <ctkException.h>
class ctkConfigurationEventData : public QSharedData
{
public:
ctkConfigurationEventData(const ctkServiceReference& reference,
ctkConfigurationEvent::Type type,
const QString& factoryPid,
const QString& pid)
: type(type), factoryPid(factoryPid), pid(pid), reference(reference)
{
}
ctkConfigurationEventData(const ctkConfigurationEventData& other)
: QSharedData(other), type(other.type), factoryPid(other.factoryPid),
pid(other.pid), reference(other.reference)
{
}
/**
* Type of this event.
*/
const ctkConfigurationEvent::Type type;
/**
* The factory pid associated with this event.
*/
const QString factoryPid;
/**
* The pid associated with this event.
*/
const QString pid;
/**
* The ConfigurationAdmin service which created this event.
*/
const ctkServiceReference reference;
};
//----------------------------------------------------------------------------
ctkConfigurationEvent::ctkConfigurationEvent()
: d(0)
{
}
//----------------------------------------------------------------------------
ctkConfigurationEvent::~ctkConfigurationEvent()
{
}
//----------------------------------------------------------------------------
bool ctkConfigurationEvent::isNull() const
{
return !d;
}
//----------------------------------------------------------------------------
ctkConfigurationEvent::ctkConfigurationEvent(const ctkServiceReference& reference,
Type type, const QString& factoryPid,
const QString& pid)
: d(new ctkConfigurationEventData(reference, type, factoryPid, pid))
{
if (pid.isNull())
{
throw ctkInvalidArgumentException("pid must not be null");
}
}
//----------------------------------------------------------------------------
ctkConfigurationEvent::ctkConfigurationEvent(const ctkConfigurationEvent& other)
: d(other.d)
{
}
//----------------------------------------------------------------------------
ctkConfigurationEvent& ctkConfigurationEvent::operator=(const ctkConfigurationEvent& other)
{
d = other.d;
return *this;
}
//----------------------------------------------------------------------------
QString ctkConfigurationEvent::getFactoryPid() const
{
return d->factoryPid;
}
//----------------------------------------------------------------------------
QString ctkConfigurationEvent::getPid() const
{
return d->pid;
}
//----------------------------------------------------------------------------
int ctkConfigurationEvent::getType() const
{
return d->type;
}
//----------------------------------------------------------------------------
ctkServiceReference ctkConfigurationEvent::getReference() const
{
return d->reference;
}
//----------------------------------------------------------------------------
QDebug operator<<(QDebug dbg, ctkConfigurationEvent::Type type)
{
switch (type)
{
case ctkConfigurationEvent::CM_UPDATED: return dbg << "CM_UPDATED";
case ctkConfigurationEvent::CM_DELETED: return dbg << "CM_DELETED";
default: return dbg << "unknown configuration event type (" << static_cast<int>(type) << ")";
}
}
//----------------------------------------------------------------------------
QDebug operator<<(QDebug dbg, const ctkConfigurationEvent& event)
{
if (event.isNull()) return dbg << "NONE";
dbg.nospace() << event.getType() << (event.getFactoryPid().isEmpty() ? " " : event.getFactoryPid() + ", ")
<< "pid=" << event.getPid();
return dbg.maybeSpace();
}
没有合适的资源?快使用搜索试试~ 我知道了~
ctk_debug_qt4.8.6_x86.zip
共535个文件
h:382个
cmake:70个
cpp:23个
需积分: 13 2 下载量 53 浏览量
2021-06-27
02:12:12
上传
评论
收藏 3.77MB ZIP 举报
温馨提示
Visual Studio2010基于Qt4.8.6编译的CTK框架的32位开发包(debug)
资源推荐
资源详情
资源评论
收起资源包目录
ctk_debug_qt4.8.6_x86.zip (535个子文件)
CTKExports.cmake 22KB
ctkMacroBuildPlugin.cmake 14KB
ctkMacroBuildPlugin.cmake 14KB
CTKExports-debug.cmake 11KB
ctkMacroTargetLibraries.cmake 9KB
ctkMacroTargetLibraries.cmake 9KB
ctkMacroValidateBuildOptions.cmake 8KB
ctkMacroValidateBuildOptions.cmake 8KB
CTKConfig.cmake 7KB
ctkMacroBuildQtPlugin.cmake 7KB
ctkMacroBuildQtPlugin.cmake 7KB
ctkMacroBuildLibWrapper.cmake 7KB
ctkMacroBuildLibWrapper.cmake 7KB
ctkMacroCompilePythonScript.cmake 6KB
ctkMacroCompilePythonScript.cmake 6KB
ctkMacroBuildLib.cmake 6KB
ctkMacroBuildLib.cmake 6KB
ctkMacroWrapPythonQt.cmake 6KB
ctkMacroWrapPythonQt.cmake 6KB
ctkFunctionGenerateDGraphInput.cmake 5KB
ctkFunctionGenerateDGraphInput.cmake 5KB
ctkListToString.cmake 5KB
ctkListToString.cmake 5KB
ctkMacroBuildApp.cmake 4KB
ctkMacroBuildApp.cmake 4KB
CMakeFindDependencyMacro.cmake 4KB
CMakeFindDependencyMacro.cmake 4KB
ctkFunctionGeneratePluginManifest.cmake 3KB
ctkFunctionGeneratePluginManifest.cmake 3KB
ctkMacroSetupQt.cmake 3KB
ctkMacroSetupQt.cmake 3KB
CTKPluginUseFile.cmake 3KB
ctkFunctionGetIncludeDirs.cmake 3KB
ctkFunctionGetIncludeDirs.cmake 3KB
ctkMacroOptionUtils.cmake 3KB
ctkMacroOptionUtils.cmake 3KB
ctkFunctionCompileSnippets.cmake 3KB
ctkFunctionCompileSnippets.cmake 3KB
ctkLinkerAsNeededFlagCheck.cmake 2KB
ctkLinkerAsNeededFlagCheck.cmake 2KB
ctkFunctionGetCompilerVisibilityFlags.cmake 2KB
ctkFunctionGetCompilerVisibilityFlags.cmake 2KB
ctkMacroListFilter.cmake 2KB
ctkMacroListFilter.cmake 2KB
ctkFunctionAddPluginRepo.cmake 2KB
ctkFunctionAddPluginRepo.cmake 2KB
UseCTK.cmake 2KB
CTKConfigVersion.cmake 2KB
ctkFunctionCheckCompilerFlags.cmake 2KB
ctkFunctionCheckCompilerFlags.cmake 2KB
ctkFunctionGetLibraryDirs.cmake 2KB
ctkFunctionGetLibraryDirs.cmake 2KB
ctkFunctionExtractOptionNameAndValue.cmake 2KB
ctkFunctionExtractOptionNameAndValue.cmake 2KB
ctkFunctionCheckoutRepo.cmake 2KB
ctkFunctionCheckoutRepo.cmake 2KB
ctkMacroAddCtkLibraryOptions.cmake 1KB
ctkMacroAddCtkLibraryOptions.cmake 1KB
ctkFunctionGetGccVersion.cmake 1KB
ctkFunctionGetGccVersion.cmake 1KB
ctkMacroGenerateMocs.cmake 1KB
ctkMacroGenerateMocs.cmake 1KB
ctkMacroSetPaths.cmake 1KB
ctkMacroSetPaths.cmake 1KB
ctkMacroGeneratePluginResourceFile.cmake 1KB
ctkMacroGeneratePluginResourceFile.cmake 1KB
ctkFunctionExtractOptimizedLibrary.cmake 1KB
ctkFunctionExtractOptimizedLibrary.cmake 1KB
ctkMacroParseArguments.cmake 1KB
ctkMacroParseArguments.cmake 1KB
ctkConfigurationEvent.cpp 4KB
ctkEvent.cpp 4KB
ctkConfigurationException.cpp 3KB
ctkApplicationException.cpp 3KB
ctkLogService.cpp 2KB
ctkApplicationDescriptor.cpp 2KB
ctkEventConstants.cpp 2KB
ctkLocation.cpp 2KB
ctkLogStream.cpp 2KB
ctkConfiguration.cpp 2KB
ctkApplicationHandle.cpp 1KB
ctkConfigurationAdmin.cpp 1KB
ctkMetaTypeProvider.cpp 1001B
ctkConfigurationPlugin.cpp 991B
ctkAttributeDefinition.cpp 966B
ctkMetaTypeService.cpp 936B
ctkDebugOptions.cpp 929B
C.cpp 38B
C.cpp 38B
A.cpp 35B
A.cpp 35B
B.cpp 25B
B.cpp 25B
CTKWidgets.dll 2.62MB
CTKCommandLineModulesFrontendQtGui.dll 1.15MB
CTKPluginFramework.dll 996KB
CTKCore.dll 835KB
liborg_commontk_configadmin.dll 665KB
CTKCommandLineModulesCore.dll 591KB
liborg_commontk_eventadmin.dll 476KB
共 535 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
刘亿辰
- 粉丝: 73
- 资源: 79
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 毕业设计基于STM32的测量温度与压力的数据处理设计C语言完整源码+论文.zip
- 基于MATLAB的PCA算法人脸识别项目源码+GUI界面+说明文档.zip
- 基于STM32的测量温度与压力的数据处理设计源码+论文(毕业设计).zip
- Vision Transformer 网络对不同氨气氧气浓度轨迹RAS 图像数据集的分类,包含训练权重和数据集、迁移学习
- 基于C51带字库LCD12864(ST7920)的keil工程源码,只支持8位并口通讯(不支持串口),可显示中文.zip
- 基于SI4463射频模块433MD-SMA无线模块软硬件技术资料及(SI4463)IC技术资料文档.zip
- (GPS+北斗+GSM)HLK-GS2503模块软硬件开发资料包硬件参考设计(原理图PCB)+技术文档资料.zip
- 基于BERT+Biaffine结构的关系抽取模型源码+文档说明.zip
- 利用c语言编写的冒泡排序代码
- 基于Ansoft-HFSS知识总结hfss中文教程HFSS培训教材等技术资料合集(50个).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功