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

« back to all changes in this revision

Viewing changes to src/cadxcore/api/ubication.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (1.2.1) (7.1.6 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130721115853-0aii5ee76hxm8z1f
* 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
#include "ubication.h"
 
2
 
 
3
GIL::Ubicacion::Ubicacion() :
 
4
        Monitorize(false),
 
5
        CleanBefore(false),
 
6
        CleanAfter(false)
 
7
{
 
8
}
 
9
 
 
10
GIL::Ubicacion::Ubicacion(const std::string& titulo, const std::string& ruta, const std::string& descripcion, bool monitorize, bool cleanbefore, bool cleanafter)
 
11
{
 
12
        this->Titulo = titulo;
 
13
        Update(ruta, descripcion, monitorize, cleanbefore, cleanafter);
 
14
 
 
15
}
 
16
 
 
17
GIL::Ubicacion::Ubicacion(const GIL::Ubicacion& otro)
 
18
{
 
19
        *this = otro;
 
20
}
 
21
 
 
22
GIL::Ubicacion::~Ubicacion()
 
23
{
 
24
 
 
25
}
 
26
 
 
27
void GIL::Ubicacion::Update(const std::string& ruta, const std::string& desc, bool monitorize, bool cleanbefore, bool cleanafter)
 
28
{
 
29
        this->Ruta        = ruta;
 
30
        this->Descripcion = desc;
 
31
        this->Monitorize  = monitorize;
 
32
        this->CleanBefore = cleanbefore;
 
33
        this->CleanAfter  = cleanafter;
 
34
}
 
35
 
 
36
GIL::Ubicacion& GIL::Ubicacion::operator=(const GIL::Ubicacion& otro)
 
37
{
 
38
        this->Titulo      = otro.Titulo;
 
39
        this->Ruta        = otro.Ruta;
 
40
        this->Descripcion = otro.Descripcion;
 
41
        this->Monitorize        = otro.Monitorize;
 
42
        this->CleanBefore       = otro.CleanBefore;
 
43
        this->CleanAfter        = otro.CleanAfter;
 
44
 
 
45
        return *this;
 
46
}               
 
47