Changeset 2577 for trunk/src


Ignore:
Timestamp:
06/27/12 12:58:28 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Defined PKSMS option in cmake.
if PKSMS=ON, PKSMSreader/writer will be built while if PKSMS=OFF,
those classes will be ignored. Default is OFF.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STWriter.cpp

    r2023 r2577  
    4040
    4141#include <atnf/PKSIO/PKSrecord.h>
     42#ifndef NOPKSMS
    4243#include <atnf/PKSIO/PKSMS2writer.h>
     44#endif
    4345#include <atnf/PKSIO/PKSSDwriter.h>
    4446#include <atnf/PKSIO/SrcType.h>
     
    6668  t.upcase();
    6769  if (t == "MS2") {
     70    #ifdef NOPKSMS
     71    throw (AipsError("MS2 OUTPUT FORMAT IS NO LONGER SUPPORTED"));
     72    #else
    6873    writer_ = new PKSMS2writer();
     74    #endif
    6975  } else if (t == "SDFITS") {
    7076    writer_ = new PKSSDwriter();
     
    9399  t.upcase();
    94100  if (t== "MS2") {
     101    #ifdef NOPKSMS
     102    throw (AipsError("MS2 OUTPUT FORMAT IS NO LONGER SUPPORTED"));
     103    #else
    95104    writer_ = new PKSMS2writer();
     105    #endif
    96106  } else if (t== "SDFITS") {
    97107    writer_ = new PKSSDwriter();
Note: See TracChangeset for help on using the changeset viewer.