- 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 | 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 |