Logo Search packages:      
Sourcecode: condor version File versions  Download package

classadlogentry.h

/***************************************************************
 *
 * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
 * University of Wisconsin-Madison, WI.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License.  You may
 * obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ***************************************************************/

#ifndef _CLASSADLOGENTRY_H_
#define _CLASSADLOGENTRY_H_


//! Definition of New ClassAd Command Type Constant
#define CondorLogOp_NewClassAd                  101

//! Definition of Destroy ClassAd Command Type Constant
#define CondorLogOp_DestroyClassAd        102


//! Definition of Set Attribute Command Type Constant
#define CondorLogOp_SetAttribute          103

//! Definition of Delete Attribute Command Type Constant
#define CondorLogOp_DeleteAttribute       104

//! Definition of Begin Transaction Command Type Constant
#define CondorLogOp_BeginTransaction            105

//! Definition of End Transaction Command Type Constant
#define CondorLogOp_EndTransaction        106

//! Definition of End Transaction Command Type Constant
#define CondorLogOp_LogHistoricalSequenceNumber 107


//! ClassAdLogEntry
/*! \brief this models each ClassAd Log Entry
 *
 * It includes data and a couple of accessors.
 */
00052 class ClassAdLogEntry
{
public:
      //! constructor   
      ClassAdLogEntry();
      //! destructor    
      ~ClassAdLogEntry();

      //! initialization
      //! \param opType command type (operation type)
      void                    init(int opType);

            // opeartors
      //! assigment operator
      ClassAdLogEntry&  operator=(const ClassAdLogEntry&);
      //! eqaul check operator
      int                           equal(ClassAdLogEntry* caLogEntry);

            // data
00071       long                    offset;                 //!< offset of this entry
00072       long                    next_offset;      //!< offset of the next entry
00073       int                     op_type;          //!< command type

00075       char                    *key;             //!< key
00076       char                    *mytype;          //!< mytype
00077       char                    *targettype;      //!< targettype
00078       char                    *name;                  //!< name
00079       char                    *value;                 //!< attribut value
      
private:
      int                           valcmp(char* str1, char* str2);
};

#endif /* _CLASSADLOGENTRY_H_ */

Generated by  Doxygen 1.6.0   Back to index