예제 #1
0
파일: Path.cpp 프로젝트: Web5design/firtex2
std::string Path::toString(Style style) const
{
    switch (style)
    {
    case PATH_UNIX:
        return buildUnix();
    case PATH_WINDOWS:
        return buildWindows();
    case PATH_NATIVE:
    case PATH_GUESS:
        return toString();
    default:
        throw BadParameterException();
    }
    return std::string();
}
예제 #2
0
파일: Path.cpp 프로젝트: Web5design/firtex2
Path& Path::assign(const std::string& sPath, Style style)
{
    switch (style)
    {
    case PATH_UNIX:
        parseUnix(sPath);
        break;
    case PATH_WINDOWS:
        parseWindows(sPath);
        break;
    case PATH_NATIVE:
        assign(sPath);
        break;
    case PATH_GUESS:
        parseGuess(sPath);
        break;
    default:
        throw BadParameterException();
    }
    return *this;
}
예제 #3
0
파일: Instruction.cpp 프로젝트: T4lus/AVM
void    Instruction::AInstruction::addParameter(const std::string &param)
{
  throw BadParameterException(param + " - this instruction does not need parameter");
}