summaryrefslogtreecommitdiffstats
path: root/tksao/frame/grid.C
blob: 0e23c0d20e8a5beaeb15dd9b9b3e4ded8c3f7b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 1999-2016
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#include "grid.h"
#include "context.h"
#include "fitsimage.h"

extern "C" {
  #include "ast.h"
}

Grid::Grid(Coord::CoordSystem sys, Coord::SkyFrame sky, 
	   Coord::SkyFormat format, GridType type, const char* v) 
  : type_(type), system_(sys), sky_(sky), skyFormat_(format)
{
  vars_ = dupstr(v);
}

Grid::~Grid()
{
  if (vars_)
    delete [] vars_;
}