![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members /BdbTransfer/BdbPTRemoteCopyError.h
Go to the documentation of this file.00001 //------------------------------------------------------------------------------ 00002 // File and Version Information: 00003 // $Id: BdbPTRemoteCopyError.h,v 1.3 1999/07/29 18:36:20 svarovsk Exp $ 00004 // 00005 // Description: 00006 // errors and error messages definition for BdbPTRemoteCopy 00007 // 00008 // Environment: 00009 // Software developed for the BaBar Detector at the SLAC B-Factory 00010 // 00011 // Author: 00012 // Gennadi S. Svarovski (svarovsk@slac.stanford.edu) 00013 // original author 00014 // 00015 // Copyright Information: 00016 // Copyright (C) 1999 Stanford Linear Accelerator Center 00017 // 00018 //------------------------------------------------------------------------------ 00019 00020 #ifndef BDBREMOTECOPYERROR_H 00021 #define BDBREMOTECOPYERROR_H 00022 00023 // result of operation for client-server communication 00024 enum BdbPTRemoteCopyResult { 00025 GOOD = 0, 00026 // return codes (-1)-(-99) reserved for local errors 00027 ECHK = -100, // checksum error 00028 EWRT = -101, // write failed 00029 EPRM = -102, // insufficient file permissions 00030 EACC = -103, // access denied 00031 EPOR = -104, // unable to find free port 00032 ECON = -105, // connection broken 00033 EPRT = -106, // protocol mismatch 00034 EXST = -107, // file doesn't exist 00035 ESHT = -108 // shutdown requested 00036 }; 00037 00038 class BdbPTRemoteCopyError { 00039 private: 00040 BdbPTRemoteCopyResult result; 00041 00042 public: 00043 // constructor from result 00044 inline BdbPTRemoteCopyError( BdbPTRemoteCopyResult _result ); 00045 inline BdbPTRemoteCopyError( int _result ); 00046 00047 operator const char* () const; 00048 }; 00049 00050 inline BdbPTRemoteCopyError::BdbPTRemoteCopyError( BdbPTRemoteCopyResult _result ) : 00051 result( _result ) 00052 { 00053 } 00054 00055 inline BdbPTRemoteCopyError::BdbPTRemoteCopyError( int _result ) : 00056 result( (BdbPTRemoteCopyResult)_result ) 00057 { 00058 } 00059 00060 #endif // BDBREMOTECOPYERROR_H
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002