Show kblockid.cpp syntax highlighted
/*
Copyright (C) 2003, 2004, 2005 by Luca Cappa
Written by Luca Cappa groton@users.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "cssysdef.h"
#include "csutil/sysfunc.h"
#include "csutil/scfstr.h"
//Include for this file.
#include "kblockid.h"
const KBlockId KBlockId::I1 = KBlockId ("I1");
const KBlockId KBlockId::I2 = KBlockId ("I2");
const KBlockId KBlockId::L1 = KBlockId ("L1");
const KBlockId KBlockId::L2 = KBlockId ("L2");
const KBlockId KBlockId::L3 = KBlockId ("L3");
const KBlockId KBlockId::L4 = KBlockId ("L4");
const KBlockId KBlockId::T1 = KBlockId ("T1");
const KBlockId KBlockId::T2 = KBlockId ("T2");
const KBlockId KBlockId::F = KBlockId ("F");
const KBlockId KBlockId::C = KBlockId ("C");
const KBlockId KBlockId::D1 = KBlockId ("D1");
const KBlockId KBlockId::D2 = KBlockId ("D2");
class KBlockId const KConstant<class KBlockId>::INVALID;
#ifdef KAS_OLD_WAY
KBlockId const* KConstant<KBlockId>::s_idArray;
size_t KConstant<KBlockId>::s_idArraySize;
#else // KAS_OLD_WAY
const KBlockId KConstant<KBlockId>::s_idArray [12] = {
KBlockId::I1,
KBlockId::I2,
KBlockId::L1,
KBlockId::L2,
KBlockId::L3,
KBlockId::L4,
KBlockId::T1,
KBlockId::T2,
KBlockId::F,
KBlockId::C,
KBlockId::D1,
KBlockId::D2
};
#endif // KAS_OLD_WAY
See more files for this project here