Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ListResults.H

Go to the documentation of this file.
00001 // Copyright (C) 2001, Compaq Computer Corporation
00002 // 
00003 // This file is part of Vesta.
00004 // 
00005 // Vesta is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 // 
00010 // Vesta is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with Vesta; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 // Last modified on Fri Apr 22 17:43:17 EDT 2005 by ken@xorian.net
00020 
00021 #include <string.h>
00022 #include <Basics.H>
00023 #include <Sequence.H>
00024 
00025 #include "VestaSource.H"
00026 
00027 // Result for VestaSourceSRPC::List call to the repository
00028 
00029 struct ListResultItem
00030 {
00031   char arc[MAX_ARC_LEN+1];
00032   VestaSource::typeTag type;
00033   unsigned int index;
00034   Bit32 pseudoInode;
00035   ShortId filesid;
00036   bool master;
00037 
00038   inline ListResultItem &operator=(const ListResultItem &other)
00039   {
00040     strcpy(arc, other.arc);
00041     type = other.type;
00042     index = other.index;
00043     pseudoInode = other.pseudoInode;
00044     filesid = other.filesid;
00045     master = other.master;
00046 
00047     return *this;
00048   }
00049 };
00050 
00051 typedef Sequence<ListResultItem, true> ListResultSeq;
00052 
00053 // Result for getAttrib/listAttribs
00054 
00055 typedef Sequence<char *> AttribResultSeq;
00056 
00057 // Result for getAttribHistory
00058 
00059 struct AttribHistoryResultItem
00060 {
00061   VestaSource::attribOp op;
00062   char *name;
00063   char *value;
00064   time_t timestamp;
00065 };
00066 
00067 typedef Sequence<AttribHistoryResultItem> AttribHistoryResultSeq;

Generated on Mon May 8 00:48:44 2006 for Vesta by  doxygen 1.4.2