~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/controllers/dcmtk/dicomechoassociation.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 *  $Id: dicomechoassociation.cpp 3526 2011-03-16 19:56:19Z carlos $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
#include <api/icontroladorlog.h>
 
15
#include <main/controllers/controladorlog.h>
 
16
#include "dicomechoassociation.h"
 
17
#include <api/internacionalizacion.h>
 
18
 
 
19
#ifdef verify
 
20
#define MACRO_QUE_ESTORBA verify
 
21
#undef verify
 
22
#endif
 
23
 
 
24
 
 
25
#ifdef MACRO_QUE_ESTORBA
 
26
#define verify MACRO_QUE_ESTORBA
 
27
#endif
 
28
 
 
29
EchoAssociation::EchoAssociation(const std::string& ambitolog) : Association(ambitolog) {
 
30
        m_abstractSyntax = UID_VerificationSOPClass;
 
31
}
 
32
 
 
33
EchoAssociation::~EchoAssociation() {
 
34
}
 
35
 
 
36
void EchoAssociation::OnAddPresentationContext(T_ASC_Parameters* params) {
 
37
        CONDITION cond = ASC_addPresentationContext(params, 1, m_abstractSyntax, AllTransferSyntaxes, 3);
 
38
        if (cond.bad()) {
 
39
                LOG_ERROR(ambitolog, "Unable to add default presentation context");
 
40
        }
 
41
}