Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/test_swig_8h_source.html
Дата изменения: Tue Sep 15 02:25:37 2015
Дата индексирования: Sun Apr 10 01:16:32 2016
Кодировка:

Поисковые слова: п п п п п п п п
lsst.tcc: include/tcc/testSwig.h Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
testSwig.h
Go to the documentation of this file.
1 #pragma once
2 #include "boost/shared_ptr.hpp"
3 #include "boost/make_shared.hpp"
4 #include "coordConv/coordConv.h"
5 
6 namespace tcc {
7 
15  class TestSwig {
16  public:
17  TestSwig() : pvt(), obsSys(2012.5), ptrObsSys(boost::make_shared<coordConv::ObsCoordSys>(2013.5)) {}
18  coordConv::PVT pvt;
19  coordConv::ObsCoordSys obsSys;
20  boost::shared_ptr<coordConv::ObsCoordSys> ptrObsSys;
21  };
22 
23 }
24 
25 /*
26 Demo program
27 
28 python
29 
30 import tcc.base
31 testSwig = tcc.base.TestSwig()
32 testSwig.pvt.pos = 125
33 assert testSwig.pvt.pos == 125
34 
35 assert testSwig.ptrObsSys.getDate() == 2013.5
36 
37 try:
38  assert testSwig.obsSys.getDate() == 2012.5
39 except AttributeError:
40  print "FAILED: testSwig.obsSys has no attribute getDate"
41 
42 */
coordConv::ObsCoordSys obsSys
Definition: testSwig.h:19
boost::shared_ptr< coordConv::ObsCoordSys > ptrObsSys
Definition: testSwig.h:20
coordConv::PVT pvt
Definition: testSwig.h:18