root/ossiedev/branches/jsnyder/trunk/system/ossie/framework/helperFunctions.cpp @ 11064

Revision 11064, 1.7 KB (checked in by Snyder.Jason, 14 months ago)

committing patches from opencpi

Line 
1/****************************************************************************
2
3Copyright 2007, Virginia Polytechnic Institute and State University
4
5This file is part of the OSSIE Core Framework.
6
7OSSIE Core Framework is free software; you can redistribute it and/or modify
8it under the terms of the Lesser GNU General Public License as published by
9the Free Software Foundation; either version 2.1 of the License, or
10(at your option) any later version.
11
12OSSIE Core Framework is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15Lesser GNU General Public License for more details.
16
17You should have received a copy of the Lesser GNU General Public License
18along with OSSIE Core Framework; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
21****************************************************************************/
22
23#include <string>
24#include <iostream>
25
26#include "ossie/FileSystem_impl.h"
27
28#include <ossie/ossieSupport.h>
29#include <ossie/debug.h>
30
31void ossieSupport::createProfileFromFileName(std::string fileName, std::string &profile)
32{
33    profile = "<profile filename=\"" + fileName + "\" />";
34
35    return;
36}
37
38bool ossieSupport::isValidFileName(const char *fileName)
39{
40  return FileSystem_impl::isValidPath(fileName);
41}
42
43const char * ossieSupport::spd_rel_file(const char *spdFile, const char *name, std::string &fileName)
44{
45    DEBUG(9, spd_rel_file, "Called with spdFile: " << spdFile << ", name: " << name);
46
47    FileSystem_impl::joinPath(spdFile, name, fileName);
48
49    DEBUG(9, spd_rel_file, "Result: " << fileName);
50
51    return fileName.c_str();
52}
Note: See TracBrowser for help on using the browser.