Changeset 523 in dev for trunk/ab5.0/jenga


Ignore:
Timestamp:
May 1, 2008, 11:03:14 PM (16 years ago)
Author:
dai_9181
Message:

ヘッダファイルを整理中

Location:
trunk/ab5.0/jenga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/jenga/include/common/BoostSerializationSupport.h

    r520 r523  
    11#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>
    112
    123namespace Jenga{
    134namespace Common{
    14 
    15 using namespace std;
    165
    176template<class T_xml_schema> class BoostSerializationSupport{
     
    2110
    2211public:
    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;
    2514    bool ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true );
    2615    bool WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ) const;
  • trunk/ab5.0/jenga/include/common/Directory.h

    r295 r523  
    11#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 
    112
    123namespace Jenga{
    134namespace Common{
    145
    15 using namespace std;
    16 
    176class Directory
    187{
    19     string path;
     8    std::string path;
    209public:
    21     Directory( const string &path, bool isMake = false );
     10    Directory( const std::string &path, bool isMake = false );
    2211
    23     string GetFullPath( const string &relationPath );
    24 
    25     string GetRelationalPath( const string &fullPath )
    26     {
    27     }
     12    std::string GetFullPath( const std::string &relationPath );
    2813};
    2914
  • trunk/ab5.0/jenga/src/common/Directory.cpp

    r518 r523  
    11#include "stdafx.h"
    22
    3 using namespace std;
    43using namespace Jenga::Common;
    54
    6 Directory::Directory( const string &path, bool isMake )
     5Directory::Directory( const std::string &path, bool isMake )
    76    : path( path )
    87{
     
    1615}
    1716
    18 string Directory::GetFullPath( const string &relationPath )
     17std::string Directory::GetFullPath( const std::string &relationPath )
    1918{
    20     string resultPath = relationPath;
     19    std::string resultPath = relationPath;
    2120
    2221    // '/'→'\'
     
    2928    }
    3029
    31     if( resultPath.find( ":" ) != string::npos || resultPath.find( "\\\\" ) != string::npos )
     30    if( resultPath.find( ":" ) != std::string::npos || resultPath.find( "\\\\" ) != std::string::npos )
    3231    {
    3332        // フルパスが引き渡されていたとき
Note: See TracChangeset for help on using the changeset viewer.