~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/eventos/handledicom.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
*  
3
 
*  $Id: handledicom.h $
4
 
*  Ginkgo CADx Project
5
 
*
6
 
*  Copyright 2008-12 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
 
#pragma once
14
 
 
15
 
 
16
 
#include <string>
17
 
#include <vector>
18
 
#include <api/api.h>
19
 
#include <api/autoptr.h>
20
 
#include <api/imodelointegracion.h>
21
 
#include <api/ievento.h>
22
 
#include "eventosginkgo.h"
23
 
 
24
 
namespace GNC {
25
 
        namespace GCS {
26
 
                namespace Events {
27
 
 
28
 
                        //de momento se pasan uids de series, en un futuro podriamos tratar con open sopinstances uids o study instances
29
 
                        class EXTAPI EvtHandleDicom: public GNC::GCS::Events::IEvent
30
 
                        {
31
 
                        public:
32
 
                                typedef enum {
33
 
                                        Undefined,
34
 
                                        DeleteSeries,
35
 
                                        OpenSeries
36
 
                                } TAction;
37
 
 
38
 
                                typedef std::list<std::string> ListaUIDs;
39
 
 
40
 
                                EvtHandleDicom():GNC::GCS::Events::IEvent(ginkgoEVT_Core_HandleDICOM)
41
 
                                {
42
 
                                        m_Nombre = "EvtHandleDicom";
43
 
                                        m_action = Undefined;
44
 
                                }
45
 
 
46
 
                                EvtHandleDicom(ListaUIDs lista, TAction action = OpenSeries):GNC::GCS::Events::IEvent(ginkgoEVT_Core_HandleDICOM)
47
 
                                {
48
 
                                        m_listaUIDs = lista;
49
 
                                        m_Nombre = "EvtHandleDicom";
50
 
                                        m_action = action;
51
 
                                }
52
 
 
53
 
                                ~EvtHandleDicom()
54
 
                                {
55
 
                                        m_listaUIDs.clear();
56
 
                                }
57
 
 
58
 
                                void SetListaUIDs(ListaUIDs lista)
59
 
                                {
60
 
                                        m_listaUIDs=lista;
61
 
                                }
62
 
 
63
 
                                ListaUIDs &GetListaUIDs()
64
 
                                {
65
 
                                        return m_listaUIDs;
66
 
                                }
67
 
 
68
 
                                TAction GetAction()
69
 
                                {
70
 
                                        return m_action;
71
 
                                }
72
 
 
73
 
                                virtual void pushInfo(std::ostream& out) const {
74
 
                                        out <<"Rutas = [ ";
75
 
                                        int i = 0;
76
 
                                        for (ListaUIDs::const_iterator it = m_listaUIDs.begin(); it != m_listaUIDs.end(); ++it) {
77
 
                                                if (i != 0) {
78
 
                                                        out << ", ";
79
 
                                                }
80
 
                                                out << (*it).c_str();
81
 
                                        }
82
 
                                        out << " ]";
83
 
                                }
84
 
 
85
 
                        protected:
86
 
                                ListaUIDs          m_listaUIDs;
87
 
                                TAction m_action;
88
 
                        };
89
 
                }
90
 
        }
91
 
}