19 m_consoleStream (&cout),
20 m_helpRequested (false)
51 "--write-api <filename>",
52 "Writes a JSON API specification to the specified filename.");
54 "--write-template <filename>",
55 "Writes a template keyword-list to the specified filename.");
61 if (ap.
read(
"-h") || ap.
read(
"--help") )
73 if ( ap.
read(
"--write-api", sp1))
78 ofs << json_str <<endl;
82 if ( ap.
read(
"--write-template", sp1))
103 preferencesKWL().findKey( std::string(
"ossim_share_directory" ) );
110 <<kwl_path<<
">. Ignoring"<<endl;
117 preferencesKWL().findKey( std::string(
"ossim_share_directory" ) );
139 <<filename<<
">. Ignoring."<<endl;
144 is.seekg (0, is.end);
145 int length = is.tellg();
146 is.seekg (0, is.beg);
149 char *buffer =
new char [length];
152 is.read (buffer,length);
163 #ifdef OSSIM_BUILD_DATE 172 #ifdef OSSIM_REVISION void write(std::ostream &output, const UsageMap &um, unsigned int widthOfOutput=80)
std::string getApplicationName() const
return the application name, as specified by argv[0]
void addCommandLineOption(const ossimString &option, const ossimString &explanation)
Represents serializable keyword/value map.
bool addFile(const char *file)
std::basic_ifstream< char > ifstream
Class for char input file streams.
void addOptions(ossimArgumentParser &parser)
bool read(const std::string &str)
search for an occurance of a string in the argument list, on sucess remove that occurance from the li...
ossimApplicationUsage * getApplicationUsage()
const char * chars() const
For backward compatibility.
void setApplicationName(const ossimString &name)
static ossimPreferences * instance()
ossimFilename & append(const ossimString &append_this_to_filename)
Convenience method to append a string to the base-name portion of the filename.
ossimFilename dirCat(const ossimFilename &file) const
static ossimInit * instance()
std::basic_ofstream< char > ofstream
Class for char output file streams.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)