1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /*##############################################################################
- Copyright (C) 2012 HPCC Systems.
- All rights reserved. This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as
- published by the Free Software Foundation, either version 3 of the
- License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- ############################################################################## */
- #ifndef REFFILE_LIST_HPP
- #define REFFILE_LIST_HPP
- #include "jlib.hpp"
- #include "workunit.hpp"
- #include "dadfs.hpp"
- #include "dfuutil.hpp"
- #define RefFileNone 0x000
- #define RefFileIndex 0x001
- #define RefFileNotOnCluster 0x002
- #define RefFileNotFound 0x004
- #define RefFileRemote 0x008
- #define RefFileForeign 0x010
- #define RefFileSuper 0x020
- #define RefSubFile 0x040
- #define RefFileCopyInfoFailed 0x080
- interface IReferencedFile : extends IInterface
- {
- virtual const char *getLogicalName() const =0;
- virtual unsigned getFlags() const =0;
- virtual const SocketEndpoint &getForeignIP() const =0;
- };
- interface IReferencedFileIterator : extends IIteratorOf<IReferencedFile> { };
- interface IReferencedFileList : extends IInterface
- {
- virtual void addFilesFromWorkUnit(IConstWorkUnit *cw)=0;
- virtual void addFile(const char *ln)=0;
- virtual void addFiles(StringArray &files)=0;
- virtual IReferencedFileIterator *getFiles()=0;
- virtual void resolveFiles(const char *process, const char *remoteIP, bool checkLocalFirst, bool addSubFiles)=0;
- virtual void cloneAllInfo(bool overwrite, bool cloneSuperInfo)=0;
- virtual void cloneFileInfo(bool overwrite, bool cloneSuperInfo)=0;
- virtual void cloneRelationships()=0;
- };
- IReferencedFileList *createReferencedFileList(const char *user, const char *pw);
- #endif //REFFILE_LIST_HPP
|