Changeset 408
- Timestamp:
- 07/02/09 22:16:13 (15 years ago)
- Location:
- library
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/bdmroot.cpp
r357 r408 2 2 3 3 //! Space of basic BDM structures 4 namespace bdm 5 { 4 namespace bdm { 6 5 } -
library/bdm/bdmroot.h
r390 r408 29 29 public: 30 30 //! make sure this is a virtual object 31 virtual ~root() 32 { 31 virtual ~root() { 33 32 } 34 33 35 34 //! This method returns a basic info about the current instance 36 virtual string to_string() 37 { 35 virtual string to_string() { 38 36 return ""; 39 37 } 40 38 41 39 //! This method arrange instance properties according the data stored in the Setting structure 42 virtual void from_setting( const Setting &set ) 43 { 40 virtual void from_setting(const Setting &set) { 44 41 } 45 42 46 //! This method save all the instance properties into the Setting structure 47 virtual void to_setting( Setting &set ) const 48 { 43 //! This method save all the instance properties into the Setting structure 44 virtual void to_setting(Setting &set) const { 49 45 } 50 46 51 47 //! This method TODO 52 virtual void validate() 53 { 48 virtual void validate() { 54 49 } 55 50 }; -
library/bdm/osutils.cpp
r93 r408 27 27 void get_fname ( char* filename, string &dirname, string &f ) { 28 28 #ifdef WIN32 29 sprintf ( filename, "%s\\%s",dirname.c_str(),f.c_str() );29 sprintf ( filename, "%s\\%s", dirname.c_str(), f.c_str() ); 30 30 #else 31 sprintf ( filename, "%s/%s",dirname.c_str() ,f.c_str() );31 sprintf ( filename, "%s/%s", dirname.c_str() , f.c_str() ); 32 32 #endif 33 33 } 34 34 35 void makedir (string &dirname, bool rewrite){35 void makedir ( string &dirname, bool rewrite ) { 36 36 #ifdef WIN32 37 if (mkdir(dirname.c_str()) == -1) // Create the directory37 if ( mkdir ( dirname.c_str() ) == -1 ) // Create the directory 38 38 #else 39 if (mkdir(dirname.c_str(), 00755) == -1) // Create the directory39 if ( mkdir ( dirname.c_str(), 00755 ) == -1 ) // Create the directory 40 40 #endif 41 {42 if ((rewrite) && ( errno==EEXIST ) ) it_warning ( "rewriting directory" );41 { 42 if ( ( rewrite ) && ( errno == EEXIST ) ) it_warning ( "rewriting directory" ); 43 43 else it_error ( "dirfilelog:: cannot create directory" ); 44 44 } 45 45 } -
library/bdm/osutils.h
r262 r408 26 26 @param rewrite if true then existence of the directory is not an error 27 27 */ 28 void makedir (string &dirname, bool rewrite = true);28 void makedir ( string &dirname, bool rewrite = true ); -
library/system/astylerc
r356 r408 24 24 # auto-mode-alist)) 25 25 # ---------------------------------------------------------------------- 26 indent=spaces=2 27 brackets=linux 28 brackets=break-closing 29 indent-labels 26 indent=tab=4 27 brackets=attach 30 28 pad=oper 29 pad=paren 31 30 unpad=paren 32 31 one-line=keep-blocks 33 convert-tabs