text: /***************************************************************
   *
   * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
   * University of Wisconsin-Madison, WI.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you
   * may not use this file except in compliance with the License.  You may
   * obtain a copy of the License at
   * 
   *    http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   ***************************************************************/
  
  #ifndef FILEINFO_H
  #define FILEINFO_H
  
  
  #include "constants2.h"
  #include "typedefs2.h"
  
  
  class FileInformation
  {
    private:
      file_info_node* head;
      file_info_node* tail;
      u_lint          num_files;
  
    public:
      FileInformation();
      ~FileInformation();
      void DeleteFileInfo();
      int RemoveFileInfo(file_info_node* d_ptr);
      file_info_node* AddFileInfo(const condor_sockaddr& machine_IP,
  				const char*    owner_name,
  				const char*    file_name,
  				u_lint         file_size,
  				file_state     state,
  				time_t*        last_modified_ptr);
      int RenameFileInfo(file_info_node* r_ptr,
                         const char*     new_file_name);
      u_lint GetNumFiles() { return num_files; }
      void PrintFileInfo();
      void TransferFileInfo(int socket_desc);
      void WriteFileInfoToDisk();
      void LoadFileInfoFromDisk();
  };
  
  
  #endif
  
  