userlibandfileserver/fileserver/sfat32/inc/sl_std.inl
changeset 281 13fbfa31d2ba
parent 266 0008ccd16016
equal deleted inserted replaced
266:0008ccd16016 281:13fbfa31d2ba
   469 //---------------------------------------------------------------------------------------------------------------------------------
   469 //---------------------------------------------------------------------------------------------------------------------------------
   470 // class CFatFormatCB
   470 // class CFatFormatCB
   471 
   471 
   472 /** @return pointer to the owning mount object */
   472 /** @return pointer to the owning mount object */
   473 CFatMountCB& CFatFormatCB::FatMount()
   473 CFatMountCB& CFatFormatCB::FatMount()
   474 	{return *(CFatMountCB*)&Mount();}
   474     {
       
   475     return *(CFatMountCB*)&Mount();
       
   476     }
   475 
   477 
   476 /**
   478 /**
   477 Returns the local drive used by the file systems from the owning mount
   479 Returns the local drive used by the file systems from the owning mount
   478 @return Pointer to the local drive 
   480 @return Pointer to the local drive 
   479 */
   481 */
   480 CProxyDrive* CFatFormatCB::LocalDrive()
   482 CProxyDrive* CFatFormatCB::LocalDrive()
   481 	{return(FatMount().LocalDrive());}
   483 	{
       
   484     return(FatMount().LocalDrive());
       
   485     }
       
   486 
       
   487 
       
   488 TBool CFatFormatCB::FatTypeValid() const  
       
   489     {
       
   490     return (iFatType == EFat12 || iFatType == EFat16 || iFatType == EFat32);
       
   491     }
       
   492     
       
   493 TFatType CFatFormatCB::FatType() const
       
   494     {
       
   495     ASSERT(FatTypeValid()); 
       
   496     return iFatType;
       
   497     }
       
   498 
       
   499 void CFatFormatCB::SetFatType(TFatType aType) 
       
   500     {
       
   501     ASSERT(aType != EInvalid); 
       
   502     iFatType = aType;
       
   503     }
       
   504 
       
   505 TBool CFatFormatCB::Is16BitFat() const
       
   506     {
       
   507     ASSERT(FatTypeValid()); 
       
   508     return iFatType == EFat16;
       
   509     }
       
   510 
       
   511 TBool CFatFormatCB::Is32BitFat() const  
       
   512     {
       
   513     ASSERT(FatTypeValid());
       
   514     return iFatType == EFat32;
       
   515     }
   482 
   516 
   483 
   517 
   484 //---------------------------------------------------------------------------------------------------------------------------------
   518 //---------------------------------------------------------------------------------------------------------------------------------
   485 // class CFatFileCB
   519 // class CFatFileCB
   486 
   520