Changeset 5488


Ignore:
Timestamp:
Jul 11, 2008, 1:12:37 PM (16 years ago)
Author:
jack
Message:

netcdf_file.* -> sww_file.*

Location:
anuga_work/development/anugavis/src
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anugavis/src/Makefile.am

    r5487 r5488  
    2525libanugavis_cxx_a_SOURCES = anugavis.cc \
    2626                            anugavis.hh \
    27                             netcdf_file.cc \
    28                             netcdf_file.hh \
    2927                            output.cc \
    30                             output.hh
     28                            output.hh \
     29                            sww_file.cc \
     30                            sww_file.hh
    3131libanugavis_cxx_a_LIBADD = $(LIBOBJS)
    3232
  • anuga_work/development/anugavis/src/anugavis.cc

    r5487 r5488  
    2020using std::string;
    2121
    22 AnugaVis::AnugaVis(const string &sww_file, int width, int height):
    23   screen(NULL), netcdf(sww_file){
     22AnugaVis::AnugaVis(const string &file_name, int width, int height):
     23  screen(NULL), sww_file(file_name){
    2424  init_SDL(width, height);
    2525  init_OpenGL(width, height);
  • anuga_work/development/anugavis/src/anugavis.hh

    r5487 r5488  
    66#include <string>
    77#include <SDL.h>
    8 #include "netcdf_file.hh"
     8#include "sww_file.hh"
    99
    1010using std::string;
     
    1818  void init_OpenGL(int width, int height);
    1919  SDL_Surface *screen;
    20   NetCDFFile netcdf;
     20  SWWFile sww_file;
    2121};
    2222
  • anuga_work/development/anugavis/src/sww_file.cc

    r5487 r5488  
    11#include <string>
    22#include <netcdf.h>
    3 #include "netcdf_file.hh"
     3#include "sww_file.hh"
    44
    55using std::string;
    66
    7 NetCDFFile::NetCDFFile(const string &file_name){
     7SWWFile::SWWFile(const string &file_name){
    88  int ncstatus;
    99  if((ncstatus = nc_open(file_name.c_str(),
     
    1212}
    1313
    14 NetCDFFile::~NetCDFFile(void){
     14SWWFile::~SWWFile(void){
    1515  nc_close(this->netcdf_id);
    1616}
  • anuga_work/development/anugavis/src/sww_file.hh

    r5487 r5488  
    1 #ifndef NETCDF_FILE_HH
    2 #define NETCDF_FILE_HH
     1#ifndef SWW_FILE_HH
     2#define SWW_FILE_HH
    33
    44/* A simple read-only wrapper around the NetCDF C calls, since it's
     
    99using std::string;
    1010
    11 class NetCDFFile{
     11class SWWFile{
    1212public:
    13   NetCDFFile(const string &file_name);
    14   ~NetCDFFile(void);
     13  SWWFile(const string &file_name);
     14  ~SWWFile(void);
    1515private:
    1616  int netcdf_id;
Note: See TracChangeset for help on using the changeset viewer.