class MapTable; class StrPtr; class StrBuf; enum MapType { MapInclude, MapExclude, MapOverlay }; enum MapDir { MapLeftRight, MapRightLeft }; class MapApi { public: MapApi(void); ~MapApi(void); //Functions for getting the contents of the mapping. int Count(); const StrPtr* GetLeft ( int i ); const StrPtr* GetRight( int i ); MapType GetType ( int i ); //Functions for changing the contents of the mapping. void Clear(); void Insert( const StrPtr& lr, MapType t = MapInclude ); void Insert( const StrPtr& l, const StrPtr& r, MapType t = MapInclude ); //Functions for doing interesting things with the mapping. int Translate( const StrPtr& from, StrBuf& to, MapDir d = MapLeftRight ); static MapApi* Join( MapApi* left, MapApi* right ) { return Join( left, MapLeftRight, right, MapLeftRight ); } static MapApi* Join( MapApi* m1, MapDir d1, MapApi* m2, MapDir d2 ); private: MapTable* table; MapApi( MapTable* t ); void Init(); int ambiguous; void Disambiguate(); };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-1/support/mapapi.h | |||||
#1 | 15902 | Matt Attaway | A second renaming that I will not obliterate as a badge of shame | ||
//guest/perforce_software/p4/2014_1/support/mapapi.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.1/support/mapapi.h | |||||
#1 | 12188 | Matt Attaway | Move 'main' p4 into a release specific directory in prep for new releases | ||
//guest/perforce_software/p4/support/mapapi.h | |||||
#1 | 9129 | Matt Attaway | Initial commit of the 2014.1 p4/p4api source code |