Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
61
cde/lib/tt/bin/tttar/tttar_file.C
Normal file
61
cde/lib/tt/bin/tttar/tttar_file.C
Normal file
@@ -0,0 +1,61 @@
|
||||
//%% (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
//%% (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
//%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
//%% (c) Copyright 1993, 1994 Novell, Inc.
|
||||
//%% $XConsortium: tttar_file.C /main/3 1995/10/20 17:00:10 rswiston $
|
||||
/*
|
||||
* tttar_file.cc - Implements hash table of files for the Link Service archive
|
||||
* tool.
|
||||
*
|
||||
* Copyright (c) 1990 by Sun Microsystems, Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "tttar_file.h"
|
||||
|
||||
implement_list_of(tttar_file)
|
||||
implement_table_of(tttar_file,path,_Tt_string)
|
||||
|
||||
/*
|
||||
* tttar_file::tttar_file
|
||||
*/
|
||||
tttar_file::
|
||||
tttar_file()
|
||||
{
|
||||
_path = (char *)NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* tttar_file::tttar_file()
|
||||
*/
|
||||
tttar_file::
|
||||
tttar_file( _Tt_string path )
|
||||
{
|
||||
_path = path;
|
||||
}
|
||||
|
||||
/*
|
||||
* tttar_file::~tttar_file()
|
||||
*/
|
||||
tttar_file::
|
||||
~tttar_file()
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* tttar_file::path()
|
||||
*/
|
||||
_Tt_string tttar_file::
|
||||
path()
|
||||
{
|
||||
return(_path);
|
||||
}
|
||||
|
||||
/*
|
||||
* tttar_file::print()
|
||||
*/
|
||||
void tttar_file::
|
||||
print( FILE *fs ) const
|
||||
{
|
||||
this->_path->print(fs);
|
||||
}
|
||||
Reference in New Issue
Block a user