Changeset 465 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/Method.h
- Timestamp:
- Mar 24, 2008, 8:05:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Method.h
r382 r465 5 5 class UserProc; 6 6 class CClass; 7 void SetError();8 7 9 8 class CMethod : public MemberPrototype … … 175 174 } 176 175 177 virtual bool Override( const UserProc *pUserProc, Prototype::Accessibility accessibility, bool isOverrideModifier ){SetError();return false;} 178 179 virtual bool IsAbstract() const{SetError();return false;} 180 virtual void SetAbstractMark( bool isAbstract ){SetError();} 176 virtual bool Override( const UserProc *pUserProc, Prototype::Accessibility accessibility, bool isOverrideModifier ) 177 { 178 throw; 179 } 180 181 virtual bool IsAbstract() const 182 { 183 throw; 184 } 185 virtual void SetAbstractMark( bool isAbstract ) 186 { 187 throw; 188 } 181 189 virtual bool IsVirtual() const{ 182 190 return false; 183 191 } 184 virtual bool IsConst() const{SetError();return false;} 192 virtual bool IsConst() const 193 { 194 throw; 195 } 185 196 virtual bool IsDynamic() const 186 197 { … … 191 202 return true; 192 203 } 193 virtual const CClass *GetInheritsClassPtr() const{SetError();return NULL;} 194 virtual void SetInheritsClassPtr( const CClass *pInheritsClass ){SetError();} 204 virtual const CClass *GetInheritsClassPtr() const 205 { 206 throw; 207 } 208 virtual void SetInheritsClassPtr( const CClass *pInheritsClass ) 209 { 210 throw; 211 } 195 212 virtual bool IsNotUse() const 196 213 { … … 199 216 virtual void SetNotUseMark( bool isNotUse ) 200 217 { 201 SetError();218 throw; 202 219 } 203 220 };
Note:
See TracChangeset
for help on using the changeset viewer.