本文整理汇总了C++中FileManager::GetPathname方法的典型用法代码示例。如果您正苦于以下问题:C++ FileManager::GetPathname方法的具体用法?C++ FileManager::GetPathname怎么用?C++ FileManager::GetPathname使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileManager
的用法示例。
在下文中一共展示了FileManager::GetPathname方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetLogFileName
//------------------------------------------------------------------------------
std::string ConsoleMessageReceiver::GetLogFileName()
{
FileManager *fm = FileManager::Instance();
std::string fname;
try
{
if (logFileName == "")
{
fname = fm->GetFullPathname("LOG_FILE");
}
else
{
std::string outputPath = fm->GetPathname(FileManager::LOG_FILE);
// add output path if there is no path
if (logFileName.find("/") == logFileName.npos &&
logFileName.find("\\") == logFileName.npos)
{
fname = outputPath + logFileName;
}
}
}
catch (BaseException &e)
{
ShowMessage
("**** ERROR **** " + e.GetFullMessage() +
"So setting log file name to GmatLog.txt");
fname = "GmatLog.txt";
}
return fname;
}
示例2: wxPanel
//------------------------------------------------------------------------------
VisualModelPanel::VisualModelPanel(GmatPanel *scPanel, wxWindow *parent,
Spacecraft *spacecraft, SolarSystem *solarsystem)
: wxPanel(parent)
{
// initalize data members
theScPanel = scPanel;
theGuiManager = GuiItemManager::GetInstance();
currentSpacecraft = spacecraft;
theSolarSystem = solarsystem;
//LoadPOV(new ModelObject(), wxT("C:/Programs/DevelGMAT/files/models/DMSPWithTextures/DMSP-WithTextures-POVRayFormat.pov"));
FileManager *fm = FileManager::Instance();
modelPath = fm->GetPathname(wxT("MODEL_PATH")).c_str();
Create();
}