// file: $isip/class/search/HierarchicalDigraph/hd_03.cc
//

// isip include files
//
#include "HierarchicalDigraph.h"

// method: read
//
// arguments:
//  Sof& sof: (input) sof file object
//  long tag: (input) sof object instance tag
//  const String& name: (input) sof object instance name
//
// return: a boolean value indicating status
//
// this method has the object read itself from an Sof file according
// to the specified name and tag
//
boolean HierarchicalDigraph::read(Sof& sof_a, long tag_a,
				  const String& name_a) {

  // get the instance of the object from the Sof file
  //
  if (!sof_a.find(name_a, tag_a)) {
    return false;
  }

  // read the actual data from the sof file
  //
  if (!Vector<SearchLevel>::readData(sof_a)) {
    return false;
  }
  
  // exit gracefully
  //
  return true;
}
