Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / tt / bin / tttar / tttar_file.C
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 //%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                  
24 //%%  (c) Copyright 1993, 1994 International Business Machines Corp.    
25 //%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                   
26 //%%  (c) Copyright 1993, 1994 Novell, Inc.                             
27 //%%  $XConsortium: tttar_file.C /main/3 1995/10/20 17:00:10 rswiston $                                                         
28 /*
29  * tttar_file.cc - Implements hash table of files for the Link Service archive
30  *                tool.
31  *
32  * Copyright (c) 1990 by Sun Microsystems, Inc.
33  *
34  */
35
36 #include "tttar_file.h"
37
38 implement_list_of(tttar_file)
39 implement_table_of(tttar_file,path,_Tt_string)
40
41 /*
42  * tttar_file::tttar_file
43  */
44 tttar_file::
45 tttar_file()
46 {
47         _path = (char *)NULL;
48 }
49
50 /*
51  * tttar_file::tttar_file()
52  */
53 tttar_file::
54 tttar_file( _Tt_string path )
55 {
56         _path = path;
57 }
58
59 /*
60  * tttar_file::~tttar_file()
61  */
62 tttar_file::
63 ~tttar_file()
64 {
65 }
66
67 /*
68  * tttar_file::path()
69  */
70 _Tt_string tttar_file::
71 path()
72 {
73         return(_path);
74 }
75
76 /*
77  * tttar_file::print()
78  */
79 void tttar_file::
80 print( FILE *fs ) const
81 {
82         this->_path->print(fs);
83 }