- /*
- * Copyright 1995, 1996 Perforce Software. All rights reserved.
- */
- /*
- * strarray.h - 0 based arrays of StrBufs, StrPtrs
- *
- * Class Defined:
- *
- * StrArray - a linear list of StrBufs
- * StrPtrArray - a linear list of StrPtrs
- *
- * Public methods:
- *
- * Private methods:
- */
- class StrVarArray;
- class StrArray {
- public:
- StrArray();
- ~StrArray();
- StrBuf * Put();
- const StrBuf * Get(int i) const;
- StrBuf * Edit(int i);
- int Count() const ;
- void Sort( int caseFolding );
- void Remove( int i );
- private:
- StrVarArray *array;
- } ;
- class StrPtrArray {
- public:
- StrPtrArray();
- ~StrPtrArray();
- void Put( const StrPtr &val );
- const StrPtr * Get( int i ) const { return &tabVal[i]; }
- void Clear() { tabLength = 0; }
- int Count() const { return tabLength; }
- StrPtr * Table() const { return tabVal; }
- private:
- // our own VarArray-like implementation
- StrRef *tabVal;
- int tabSize;
- int tabLength;
- } ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 7893 | Johan Nilsson | OFFLINE CHANGELIST 10 - SUBMITTED ON 2011/03/23 11:18:27 Upgrade project files to VS2010... and switching to msbuild for the entire project. Retargeted everything to .NET4 Client Profile for the time being, due to VS2010 C++ limitations (can't target anything other than 4.0 without complicating the setup too much). Shouldn't be too hard to retarget later if push comes to shove. Added VS2010 P4API stuff directly inside this project also to make things easier to get up and running for the moment. Removed old static P4API libraries. ____________________________________________________________ OFFLINE CHANGELIST 9 - SUBMITTED ON 2011/03/22 07:35:31 Converted to VS2010 « |
14 years ago |