Changeset 523 in dev for trunk/ab5.0/jenga
- Timestamp:
- May 1, 2008, 11:03:14 PM (17 years ago)
- Location:
- trunk/ab5.0/jenga
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/jenga/include/common/BoostSerializationSupport.h
r520 r523 1 1 #pragma once 2 3 #include <vector>4 #include <string>5 #include <fstream>6 #include <sstream>7 8 #include <boost/serialization/serialization.hpp>9 #include <boost/serialization/nvp.hpp>10 #include <boost/serialization/export.hpp>11 2 12 3 namespace Jenga{ 13 4 namespace Common{ 14 15 using namespace std;16 5 17 6 template<class T_xml_schema> class BoostSerializationSupport{ … … 21 10 22 11 public: 23 bool ReadXml( istream& ifs, bool isShowExceptionMessage = true );24 bool WriteXml( ostream& ofs, bool isShowExceptionMessage = true ) const;12 bool ReadXml( std::istream& ifs, bool isShowExceptionMessage = true ); 13 bool WriteXml( std::ostream& ofs, bool isShowExceptionMessage = true ) const; 25 14 bool ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ); 26 15 bool WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ) const; -
trunk/ab5.0/jenga/include/common/Directory.h
r295 r523 1 1 #pragma once 2 #pragma warning(disable : 4996)3 4 #include <vector>5 #include <string>6 7 #include <stdlib.h>8 9 #include <windows.h>10 11 2 12 3 namespace Jenga{ 13 4 namespace Common{ 14 5 15 using namespace std;16 17 6 class Directory 18 7 { 19 st ring path;8 std::string path; 20 9 public: 21 Directory( const st ring &path, bool isMake = false );10 Directory( const std::string &path, bool isMake = false ); 22 11 23 string GetFullPath( const string &relationPath ); 24 25 string GetRelationalPath( const string &fullPath ) 26 { 27 } 12 std::string GetFullPath( const std::string &relationPath ); 28 13 }; 29 14 -
trunk/ab5.0/jenga/src/common/Directory.cpp
r518 r523 1 1 #include "stdafx.h" 2 2 3 using namespace std;4 3 using namespace Jenga::Common; 5 4 6 Directory::Directory( const st ring &path, bool isMake )5 Directory::Directory( const std::string &path, bool isMake ) 7 6 : path( path ) 8 7 { … … 16 15 } 17 16 18 st ring Directory::GetFullPath( conststring &relationPath )17 std::string Directory::GetFullPath( const std::string &relationPath ) 19 18 { 20 st ring resultPath = relationPath;19 std::string resultPath = relationPath; 21 20 22 21 // '/'→'\' … … 29 28 } 30 29 31 if( resultPath.find( ":" ) != st ring::npos || resultPath.find( "\\\\" ) !=string::npos )30 if( resultPath.find( ":" ) != std::string::npos || resultPath.find( "\\\\" ) != std::string::npos ) 32 31 { 33 32 // フルパスが引き渡されていたとき
Note:
See TracChangeset
for help on using the changeset viewer.