package nxm.sys.test;

import nxm.sys.lib.DataFile;
import nxm.sys.lib.FileName;


/** This class is used for testing with instanceof DataFile
 *
 *  @author Zachary Matthews
 *  @since  NeXtMidas 3.9.4
 */
public class ChildDataFile extends DataFile {
  private String newArg;

  /** This constructor calls the parent DataFile constructor and sets the new argument
      @param ref     The reference to use
      @param name    The name of the file (can be a {@link FileName} or a {@link String})
      @param types   The types for the data in the file
      @param formats The formats for the data in the file
      @param flags   Any flags to open the file with (e.g. {@link #OUTPUT}, {@link #APPEND})
      @param newArg  Mainly for testing purposes; serves no other purpose
   */
  public ChildDataFile (Object ref,Object name,String types,String formats,int flags,String newArg) {
    super(ref,name,types,formats,flags);
    this.newArg = newArg;
  }
}
