1. 20 May, 2008 7 commits
  2. 19 May, 2008 8 commits
  3. 18 May, 2008 4 commits
  4. 17 May, 2008 1 commit
  5. 16 May, 2008 8 commits
  6. 15 May, 2008 9 commits
    • Steven Murray's avatar
      Forgot to check-in · 5f479025
      Steven Murray authored
      5f479025
    • Steven Murray's avatar
    • Steven Murray's avatar
      First implementation of setVolPriority · a3028d05
      Steven Murray authored
      a3028d05
    • Steven Murray's avatar
      My last check-in of CASTOR2/castor/Constants.hpp could be termed as a "nice try" · d82749cc
      Steven Murray authored
      or "close but no cigar".  Yes I broke the build... Sorry!
      
      One can use a constant as the size of a variable outside of a function with
      C++, as the following code which compiles successfully with -pedantic -ansi
      demonstrates:
      
      static const unsigned int ObjectsIdsNb = 152;
      
      const char* a[ObjectsIdsNb];
      
      int main(int argc, char **argv) {
        using namespace std;
      
        cout << "Hello World!" << endl;
        cout << "sizeof(a)/sizeof(char*)=" << sizeof(a)/sizeof(char*) << endl;
      }
      
      Unfortunately the C compiler, as opposed to the C++ compiler, does not allow a
      variable-size type declared outside of any function.
      
      In order to keep a solution where the numbers of object, service and
      repriesentation IDs are only written once by the programmer, I have added a
      macro for each of these values whilst preserving the C++ constants.  For
      example, in the case of ObjectsIdsNb the code now reads:
      
        /**
         * Nb of objectIds currently existing
         *
         * Note that both a macro and a constant are required because the C compiler,
         * as opposed to the C++ compiler, does not allow a variable-size type
         * declared outside of any function.
         */
      #define OBJECT_IDS_NB 152
        static const unsigned int ObjectsIdsNb = OBJECT_IDS_NB;
      d82749cc
    • Steven Murray's avatar
      Added the new VDQM2 object type id: OBJ_VolumePriority, plus used the... · 762e502c
      Steven Murray authored
      Added the new VDQM2 object type id: OBJ_VolumePriority, plus used the constants ObjectsIdsNb, ServicesIdsNb, and RepresentationsIdsNb to set the size of their corresponding string arrays, i.e. ObjectsIdStrings, ServicesIdStrings and RepresentationsIdStrings
      
      762e502c
    • Steven Murray's avatar
      Corrected comment · 1f782b24
      Steven Murray authored
      1f782b24
    • Steven Murray's avatar
      After being confused by the following: · 3dfc93c6
      Steven Murray authored
        1. castor::db::ora::OraCommonSvc is in castor/db/newora
        2. castor::db::ora::OraCommonSvc contains selectTape
        3. selectTape doesn't just select tape rows, it creates them if they cannot
           be selected
        4. castor::db::ora::OraCommonSvc::selectTape copied into
           castor::db::ora::OraVdqmSvc as VDQM2 code should be independent of the
           stager
      
      I have changed the name of castor::db::ora::OraVdqmSvc::selectTape to
      castor::db::ora::OraVdqmSvc::selectOrCreateTape. FYI castor::db::ora::OraVdqmSvc
      is in castor/db/ora.
      3dfc93c6
    • Steven Murray's avatar
      Removed unused header files · 73453dd1
      Steven Murray authored
      73453dd1
    • Steven Murray's avatar
  7. 14 May, 2008 2 commits
  8. 13 May, 2008 1 commit